From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id QPpPDHGuZWNi4gAAbAwnHQ (envelope-from ) for ; Sat, 05 Nov 2022 01:29:37 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id YAgxDHGuZWMuwwAAauVa8A (envelope-from ) for ; Sat, 05 Nov 2022 01:29:37 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E7C983770 for ; Sat, 5 Nov 2022 01:29:36 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1or73Y-0005OO-Qx; Fri, 04 Nov 2022 20:29:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1or60H-0003XA-UZ for guix-devel@gnu.org; Fri, 04 Nov 2022 19:21:37 -0400 Received: from mail-io1-xd43.google.com ([2607:f8b0:4864:20::d43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1or60G-0007jA-9Y for guix-devel@gnu.org; Fri, 04 Nov 2022 19:21:37 -0400 Received: by mail-io1-xd43.google.com with SMTP id y6so4970901iof.9 for ; Fri, 04 Nov 2022 16:21:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=DFPzsVFxbyx8I6QUci/pnCUMV+1f1MEgJwnCKAnG4NQ=; b=UuYLHd5oNZVmtox73xbBJq8RFiESo9uILc8aBC9mRoWbFOt17i0vsvUs4/x4IMb5jo YFC/oVW3SB0dNqjAG9cJc6EEFjYWiSMHL9jfSY/HLE8dQS2vcVV+pKqjpOSrz3Q7b0Ki BY/xRhNhuI0ubOtMcZSpRDGEu84Sq821CijZjkb5r+kVhbHweBL5Qcbcs3fsi7UjwYen xZpZ8AEloY54YfE2IMnPjAB6VQQdWNub5aHtTvSvtXfagdcDtOISquQTHu2wsV20Ml11 /1S7IOP8JDn+Bi5lCRzUTrXIjzWuK1Eo3gVVTbb2lMSHBxA8Zh0rJIOlAjwgU8fOpTB2 enEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=DFPzsVFxbyx8I6QUci/pnCUMV+1f1MEgJwnCKAnG4NQ=; b=gOw91L/Aykf0h5uFYx/VolfqYi5lmgRnXAIdqgfybF6mV4ng/sEsUM4ZRGwRMmj+FS Bsnt4j43gk9/vXDyQA5aGjHLz0UQucmhkYiv1yxcLWwQYoXj0E7dwhqURcnCZS7nQ+jy 8H0tH3VJuN8jot/mJ6kPSXwOV7i5pjf7DZ94OtBoiaf+ncog8IKWGHU+aGex8Yftf4Zp sRwx5fk9tK6Rqwr59NaVz44M4ACTmuLZRjf5gn9KzEHFwsC95Zabt1AHDtlOwR/EwUCh FuCme59Le/RIMRTqkkBb66TNol0ab8xiwY/CabLXy10tO3u9Fj4FyO7F23dKVqG97R+Q Y2ZQ== X-Gm-Message-State: ACrzQf3BbwPfW7b/aJrRFf6HzxQXQDrzuBsnyYU28bnVdmHg0mmZrDXK UQ8GmwOURVZ3ZO5KXD2ILtBrdg29zKrmtiu2TIl+sBDhlqWiGQ== X-Google-Smtp-Source: AMsMyM4mR+TXXVwC5sDyOkKIY9YfDVZZGpJGi1DkrLxWjpbljFXjGdleiGHYA+tmB+8havuoVH4L8MfwhySgCdOWcQw= X-Received: by 2002:a05:6638:1b08:b0:375:4392:9cac with SMTP id cb8-20020a0566381b0800b0037543929cacmr21191307jab.293.1667604094431; Fri, 04 Nov 2022 16:21:34 -0700 (PDT) MIME-Version: 1.0 From: Adam Kandur Date: Sat, 5 Nov 2022 02:21:23 +0300 Message-ID: Subject: trying to write my own herd service To: guix-devel@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::d43; envelope-from=kefironpremise@gmail.com; helo=mail-io1-xd43.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 04 Nov 2022 20:29:03 -0400 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Guix-devel" Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667608176; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=DFPzsVFxbyx8I6QUci/pnCUMV+1f1MEgJwnCKAnG4NQ=; b=mHdPuV9VtqExfKdBupgp0bTiatNRpnC7k4639zbadse71+YJREKf50Y4WAZGgz1i0sM6jq 1LnA+7OAgCPzNVaNU1smtvrpSZPZKXhUlOxUaA46B4hbipOaRwK2bvkWmSJdyv/07zBYM7 R7+HsLpRwzmW+mNRsfq/CnIZ4GbpVdUdY8JPxrFLyuFKXWWiQrS9h6Mb2pYgoBlXOjhQ0S EBCElO7qxb0ZBEmUH1eVzu68bSsv+vH+YU99JRFjAdiXAvoDowLQdmaeLkeP+W7W+oLIeg HVtu6ID7CRikt1DImnVZ54gutTYz0Rdr8rxhap6Y1yhZAw+BXEWK9BWRWqHkuA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667608176; a=rsa-sha256; cv=none; b=btlZNlgWM29IYuvU4+JkGt4bVjrY10I0VLJg3b/tkhS72Im2C2FrjpMNn9l/E+SDbE6hMD vg0OVuqYipyMpdRjcLlpq6tigSnyxkMGV9KMHSBPBH5uO7SurVJiwEKeM7KLX/X3eOL9ro cSQKttBlEPnY3e/RWhIiOl9b0zpdgOaXliy7tNwkeSpMi/Q8JmbBhgUYV0LZGGzLviXkbG 6o3rjHc5rG4cp3dD5IXmiKjIkSfnh67IvkLcPOecSnUf57tAU9zvAYjSpyyjWCb3rQ0fV1 HCD7yr1yfSerrIhogTVUwOpklAcYaVfCjhWHWmUlEi0dnGX3kzcXYWTeP5YVMQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=UuYLHd5o; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -7.50 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=UuYLHd5o; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: E7C983770 X-Spam-Score: -7.50 X-Migadu-Scanner: scn0.migadu.com X-TUID: kWMKzo3y9gWu Hi guix! I tried to write my own herd service, that's what i did ``` (define (my-daemon-shepherd-service _) (list (shepherd-service (documentation "") (provision '(go-github-com-KefirTheAutomator-daemon)) (requirement '(networking)) (start #~(make-forkexec-constructor (list (string-append #$go-github-com-KefirTheAutomator-daemon "/bin/daemon") " -pidFile=/var/run/my-daemon.pid" " -logFile=/var/log/my-daemon.log"))) (stop #~(make-kill-destructor))))) (define my-daemon-service-type (service-type (name 'my-daemon) (extensions (list (service-extension shepherd-root-service-type my-daemon-shepherd-service))) (default-value #f) (description ""))) ``` (go-github-com-KefirTheAutomator-daemon is my dummy daemon that just creates a process and writes to it's log file). This was pulled from my channel, but when I am trying to start the services, it turns of and disables ``` user@workstation ~$ sudo herd status go-github-com-KefirTheAutomator-daemon Status of go-github-com-KefirTheAutomator-daemon: It is stopped. It is disabled. Provides (go-github-com-KefirTheAutomator-daemon). Requires (networking). Conflicts with (). Will be respawned. Last respawned on Sat Nov 05 02:14:33+0300 2022. ``` Can anyone help me to find out what is wrong, I didn't find any recommendations on writing herd services?