From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 8JsdFcdkZmORzQAAbAwnHQ (envelope-from ) for ; Sat, 05 Nov 2022 14:27:35 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id eFUsFcdkZmPfUAAA9RJhRA (envelope-from ) for ; Sat, 05 Nov 2022 14:27:35 +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 DF4231254B for ; Sat, 5 Nov 2022 14:27:34 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1orJCP-0005mx-4A; Sat, 05 Nov 2022 09:27: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 1orJC9-0005ma-Bv for guix-devel@gnu.org; Sat, 05 Nov 2022 09:26:47 -0400 Received: from box.euandre.org ([46.101.160.115]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1orJC6-00086n-RJ for guix-devel@gnu.org; Sat, 05 Nov 2022 09:26:45 -0400 Received: from authenticated-user (box.euandre.org [46.101.160.115]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by box.euandre.org (Postfix) with ESMTPSA id 3F4CFFC3D2; Sat, 5 Nov 2022 10:26:28 -0300 (-03) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=euandre.org; s=mail; t=1667654790; bh=Gr0eLwXwzMAu7DEEs88KspihSSQG27RBul2gXFKZ+d4=; h=In-Reply-To:References:Subject:From:To:Date:From; b=LVcXZgC1+Zi43voKZWX/7qUnmJTGxWmRRJWDhhrlyyAn2uAV5i6Jgu7NP0HSrBdFe /9kiIZxqvcrFUfjndyXr2e0SXGZ3/RVf84/57ciubW0N/qvf/RMYYEaZy6Npc7gsd9 gOjl0alN+Yh5vZO6OTq0PTo9CGTAazomsFwBtvMHdCZBcxTcMsVNZTHmfpNkOIZaoU stWcB5ff5Ly2cEhmBo6da1v8YcFzIqbm4SgZdhP81oYrTBnBSiyHopis4ZHOHeOjNq NkOPcVF7j/K0BLfkEEmUIzIhG8ARrpvhrASqpDOz+1+z+O3zSz/hUZJve3tCXB6ZrR SDbSyITqpefCA== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: Subject: Re: trying to write my own herd service From: EuAndreh To: Adam Kandur , Liliana Marie Prikler , guix-devel@gnu.org Date: Sat, 05 Nov 2022 10:26:20 -0300 Message-ID: <166765478019.6444.8967244068283208603@localhost> Received-SPF: pass client-ip=46.101.160.115; envelope-from=eu@euandre.org; helo=box.euandre.org 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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=1667654854; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=lXQ7NHkD5xIw2FdF1NRfgOpoEPrVoT2BXPMMGFpFJr8=; b=nZz1o12JExb2pfkbAotTR/YyDh+MNQQtwiPutWD8IUqukJUaMyCxgRjlqFpQdTMw994dCe JZJ6um7Q6YD++cLj9SfaJragnY5pPLDlwY9eK6YK1yDjmtzoprbREVh135evijx4sksE3T un/Bu7Q1brMlhDL3z87kmXWTsxWOXcCFLUxaIZGLnwwWkDA3hHYqPHh11+zqNsL1U420yG cg6v82HUTbD0GjGcXJSAg/v37gF1Srx0shCHluzua3Fhze5MuRVe/ucp0tWTDz/H3KQjQJ UDZ1LBJkahoTdZh4s97x0l7Y5R1iXpmZVLngPduXltcSw+Pnw+2rTsh+mcnEyg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667654854; a=rsa-sha256; cv=none; b=Ej6+w8OOeUy4GzFtJlkdy2IiNeZFCv9OiFmGm9COxDKCJMvXPQFNpcPm7otcp16A+NDpKB LDaFtPPqeQz/dhGeGeC1h0aLJlg/sB/w8b3E6htlgRYeH2LI5GXIk5vqTG3Jp9CxgSZnK2 xnyEsKvyMLhUGRZh5mI97zgcveH82Yrpp2DCKH5XI8MLYyCu7mkGEoCh2JMCHrni1dDfb3 KD+uPjMGD+hJ/tr+cO/zFEzvY8D3k5jfKXJTQwdaTPmdLT+/qwM/oFUWIcaTBlnmhqqrCv hjoJVhHilaPYSg+rpbqqrjbn5phXN2FoEHdOp9Biu889G/ME1U+OKduaX7EUsA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=euandre.org header.s=mail header.b=LVcXZgC1; dmarc=pass (policy=quarantine) header.from=euandre.org; 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: -5.50 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=euandre.org header.s=mail header.b=LVcXZgC1; dmarc=pass (policy=quarantine) header.from=euandre.org; 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: DF4231254B X-Spam-Score: -5.50 X-Migadu-Scanner: scn0.migadu.com X-TUID: uv1kDoqTgKJj > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (start #~(make-forkexe= c-constructor > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (list > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (string-append > > #$go-github-com-KefirTheAutomator-daemon "/bin/daemon") > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 " -pidFile=3D/var/run/my-daem= on.pid" > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 " -logFile=3D/var/log/my-daem= on.log"))) [...] > Your process probably dies too often, thus causing shepherd to disable > it. I'd guess that it is dying too often because it is failing to be launched. = The extra spaces before the "-pidFile" and "-logFile" arguments aren't ignored,= like when in a shell, but are included explicitly. A contrived equivalent examp= le is: $ ls -l total 36 drwxr-xr-x 6 andreh users 4096 Nov 4 19:42 Desktop drwxr-xr-x 7 andreh users 4096 Oct 31 21:07 Documents ... $ ls '-l' total 36 drwxr-xr-x 6 andreh users 4096 Nov 4 19:42 Desktop drwxr-xr-x 7 andreh users 4096 Oct 31 21:07 Documents ... $ ls ' -l' ls: cannot access ' -l': No such file or directory I believe that a similar thing is happening to the options to your program,= and it is failing to execute because of that. You could confirm it by looking = that the logs.