From unknown Mon Jun 23 23:54:22 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#61146] [PATCH Shepherd] doc: Update user services example for `services already running'. Resent-From: Janneke Nieuwenhuizen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 29 Jan 2023 11:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61146 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61146@debbugs.gnu.org Cc: Efraim Flashner X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.167499164825949 (code B ref -1); Sun, 29 Jan 2023 11:28:02 +0000 Received: (at submit) by debbugs.gnu.org; 29 Jan 2023 11:27:28 +0000 Received: from localhost ([127.0.0.1]:42356 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pM5qJ-0006kT-OJ for submit@debbugs.gnu.org; Sun, 29 Jan 2023 06:27:28 -0500 Received: from lists.gnu.org ([209.51.188.17]:52462) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pM5qG-0006kJ-JE for submit@debbugs.gnu.org; Sun, 29 Jan 2023 06:27:26 -0500 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 1pM5qG-0008Mx-5l for guix-patches@gnu.org; Sun, 29 Jan 2023 06:27:24 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pM5qF-0007Zq-QS; Sun, 29 Jan 2023 06:27:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=L6Y3CHxaWwN9pU5zkDGaMev4jMKNdO+hHrcz9SmNHjA=; b=Gg/Bv5Fia2EBo0 9SdWWNg0CWpiU6b5SM2VDfkDrrSoAsmPTt60ajYzcJccwCbmdTrqnoSoHk5iZ0StCdmRMwDKFxLGU xpyWqZBWFUhenPNDdDbMYk+8Cyk936G4gtq8bnsrsiUvLbgTVOuvJXD+0a9NKO+z8hcitgwT+kNmW dxz3HnE/o0quJFO2mFZ9eQUx08H0jtd9SfLt+P0S44MYsgprqKn5lMphgnVEFUxaqgtCAVCKfqm/F QPoSZyROaVUqpHoFLLO15ksuz6BfM3WQCrUush4PdJ5oxq/qQmeprVdi5yNbtjY1E7LLrHMMh/Gla MTZDt8ETTxR3nsVxYn8w==; Received: from 2a02-a462-da03-1-2701-7f81-a736-4607.fixed6.kpn.net ([2a02:a462:da03:1:2701:7f81:a736:4607] helo=drakenpad.janneke.lilypond.org) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pM5qF-0001Ob-Cz; Sun, 29 Jan 2023 06:27:23 -0500 From: Janneke Nieuwenhuizen Organization: AvatarAcademy.nl X-Url: http://AvatarAcademy.nl Date: Sun, 29 Jan 2023 12:27:17 +0100 Message-ID: <87a6218tt6.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain Hi, I've been struggling with my home shepherd startup for a while, wondering what changed, overlooking this new error message in the log. Shouldn't this change have been mentioned in NEWS? FWIW, this now faulty example is also shown here https://guix.gnu.org/eo/blog/2020/gnu-shepherd-user-services/ Anyway, as the change was made quite some time ago I imagine that any other users will have figured this out by now. Greetings, Janneke --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-doc-Update-user-services-example-for-services-alread.patch Content-Transfer-Encoding: quoted-printable >From de09ecb16b547830f0df1efc42c78affaaf9c9c4 Mon Sep 17 00:00:00 2001 From: "Jan (janneke) Nieuwenhuizen" Date: Sun, 29 Jan 2023 12:05:32 +0100 Subject: [PATCH Shepherd] doc: Update user services example for `services already running'. The previously suggested example now gives Services already running, so not daemonizing. which is fixed by daemonizing right away. This is a follow-up to commit 3197c1c161d10b7f76771a2943f20fdafc5cc14a service: 'daemonize' action does nothing when services are already runn= ing. * doc/shepherd.texi (Managing User Services): Daemonize before starting services. --- doc/shepherd.texi | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/shepherd.texi b/doc/shepherd.texi index d25a8f2..538c334 100644 --- a/doc/shepherd.texi +++ b/doc/shepherd.texi @@ -13,7 +13,7 @@ Copyright @copyright{} @value{OLD-YEARS} Wolfgang J@"ahrl= ing@* Copyright @copyright{} @value{NEW-YEARS} Ludovic Court=C3=A8s@* Copyright @copyright{} 2020 Brice Waegeneire@* Copyright @copyright{} 2020 Oleg Pykhalov -Copyright @copyright{} 2020 Jan (janneke) Nieuwenhuizen@* +Copyright @copyright{} 2020, 2023 Jan (janneke) Nieuwenhuizen@* =20 Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or @@ -1353,6 +1353,9 @@ load individual service definitions from (use-modules (shepherd service) ((ice-9 ftw) #:select (scandir))) =20 +;; Send shepherd into the background +(action 'shepherd 'daemonize) + ;; Load all the files in the directory 'init.d' with a suffix '.scm'. (for-each (lambda (file) @@ -1361,8 +1364,6 @@ load individual service definitions from (lambda (file) (string-suffix? ".scm" file)))) =20 -;; Send shepherd into the background -(action 'shepherd 'daemonize) @end lisp =20 Then, individual user services can be put in --=20 2.38.1 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable --=20 Janneke Nieuwenhuizen | GNU LilyPond https://LilyPond.org Freelance IT https://www.JoyOfSource.com | Avatar=C2=AE https://AvatarAcade= my.com --=-=-=-- From unknown Mon Jun 23 23:54:22 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Janneke Nieuwenhuizen Subject: bug#61146: closed (Re: bug#61146: [PATCH Shepherd] doc: Update user services example for `services already running'.) Message-ID: References: <87cz5opa5j.fsf@gnu.org> <87a6218tt6.fsf@gnu.org> X-Gnu-PR-Message: they-closed 61146 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 61146@debbugs.gnu.org Date: Sat, 04 Mar 2023 19:53:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1677959582-10517-1" This is a multi-part message in MIME format... ------------=_1677959582-10517-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #61146: [PATCH Shepherd] doc: Update user services example for `services al= ready running'. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 61146@debbugs.gnu.org. --=20 61146: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D61146 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1677959582-10517-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 61146-done) by debbugs.gnu.org; 4 Mar 2023 19:52:02 +0000 Received: from localhost ([127.0.0.1]:37800 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pYXvG-0002iG-J7 for submit@debbugs.gnu.org; Sat, 04 Mar 2023 14:52:02 -0500 Received: from eggs.gnu.org ([209.51.188.92]:32954) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pYXvE-0002hR-Ny for 61146-done@debbugs.gnu.org; Sat, 04 Mar 2023 14:52:01 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pYXv9-0005nB-HI; Sat, 04 Mar 2023 14:51:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=g9LLCAJo1nj5fKzUi6JOoY+RCV2oVm5akWsixvhv62I=; b=QrPHEWaM6PX73v5SPzEU CEDXglsHgz+43/MlfmcLP8LCXfdZviha05v4rQPDvr5AXMVM0/5oi0w9f5Dpkmwy1MjsXN0OrpA+T vG0OS+DDz1gyAuyw/KTw6hC9L0tSmW3QHxrpelRCBePdA1mqf05oYUcEpd29/a2cdYcV7z+QbuYMc dKzFki4zIYlfFTQmjaxKebvBbBBooM5OXuXWH0ZUrNAq5FQTRJbBVsIv3+MNB+6o0vm41IFcKG6sE atwuqDo8Qf2W9XSjUhTL3vjuDYIusaUJjcSztcK20/nSK+Abn/ZQZ52W1XwcuFJnlMXcCE7xes6RC dbZ8d72JvSqw6Q==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pYXv8-0002lI-RK; Sat, 04 Mar 2023 14:51:55 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Janneke Nieuwenhuizen Subject: Re: bug#61146: [PATCH Shepherd] doc: Update user services example for `services already running'. References: <87a6218tt6.fsf@gnu.org> Date: Sat, 04 Mar 2023 20:51:52 +0100 In-Reply-To: <87a6218tt6.fsf@gnu.org> (Janneke Nieuwenhuizen's message of "Sun, 29 Jan 2023 12:27:17 +0100") Message-ID: <87cz5opa5j.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 61146-done Cc: Efraim Flashner , 61146-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Janneke Nieuwenhuizen skribis: >>>From de09ecb16b547830f0df1efc42c78affaaf9c9c4 Mon Sep 17 00:00:00 2001 > From: "Jan (janneke) Nieuwenhuizen" > Date: Sun, 29 Jan 2023 12:05:32 +0100 > Subject: [PATCH Shepherd] doc: Update user services example for `services > already running'. > > The previously suggested example now gives > > Services already running, so not daemonizing. > > which is fixed by daemonizing right away. > > This is a follow-up to commit > 3197c1c161d10b7f76771a2943f20fdafc5cc14a > service: 'daemonize' action does nothing when services are already ru= nning. > > * doc/shepherd.texi (Managing User Services): Daemonize before starting > services. Applied, thanks! You=E2=80=99re right that the change in question should have been in =E2=80= =98NEWS=E2=80=99. I guess I didn=E2=80=99t realize this could cause problems because in effect daemonizing after child processes had been started would not work correctly (shepherd wouldn=E2=80=99t receive SIGCHLD for those.) Ludo=E2=80=99. ------------=_1677959582-10517-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 29 Jan 2023 11:27:28 +0000 Received: from localhost ([127.0.0.1]:42356 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pM5qJ-0006kT-OJ for submit@debbugs.gnu.org; Sun, 29 Jan 2023 06:27:28 -0500 Received: from lists.gnu.org ([209.51.188.17]:52462) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pM5qG-0006kJ-JE for submit@debbugs.gnu.org; Sun, 29 Jan 2023 06:27:26 -0500 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 1pM5qG-0008Mx-5l for guix-patches@gnu.org; Sun, 29 Jan 2023 06:27:24 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pM5qF-0007Zq-QS; Sun, 29 Jan 2023 06:27:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=L6Y3CHxaWwN9pU5zkDGaMev4jMKNdO+hHrcz9SmNHjA=; b=Gg/Bv5Fia2EBo0 9SdWWNg0CWpiU6b5SM2VDfkDrrSoAsmPTt60ajYzcJccwCbmdTrqnoSoHk5iZ0StCdmRMwDKFxLGU xpyWqZBWFUhenPNDdDbMYk+8Cyk936G4gtq8bnsrsiUvLbgTVOuvJXD+0a9NKO+z8hcitgwT+kNmW dxz3HnE/o0quJFO2mFZ9eQUx08H0jtd9SfLt+P0S44MYsgprqKn5lMphgnVEFUxaqgtCAVCKfqm/F QPoSZyROaVUqpHoFLLO15ksuz6BfM3WQCrUush4PdJ5oxq/qQmeprVdi5yNbtjY1E7LLrHMMh/Gla MTZDt8ETTxR3nsVxYn8w==; Received: from 2a02-a462-da03-1-2701-7f81-a736-4607.fixed6.kpn.net ([2a02:a462:da03:1:2701:7f81:a736:4607] helo=drakenpad.janneke.lilypond.org) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pM5qF-0001Ob-Cz; Sun, 29 Jan 2023 06:27:23 -0500 From: Janneke Nieuwenhuizen To: guix-patches@gnu.org Subject: [PATCH Shepherd] doc: Update user services example for `services already running'. Organization: AvatarAcademy.nl X-Url: http://AvatarAcademy.nl Date: Sun, 29 Jan 2023 12:27:17 +0100 Message-ID: <87a6218tt6.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit Cc: Efraim Flashner X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain Hi, I've been struggling with my home shepherd startup for a while, wondering what changed, overlooking this new error message in the log. Shouldn't this change have been mentioned in NEWS? FWIW, this now faulty example is also shown here https://guix.gnu.org/eo/blog/2020/gnu-shepherd-user-services/ Anyway, as the change was made quite some time ago I imagine that any other users will have figured this out by now. Greetings, Janneke --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-doc-Update-user-services-example-for-services-alread.patch Content-Transfer-Encoding: quoted-printable >From de09ecb16b547830f0df1efc42c78affaaf9c9c4 Mon Sep 17 00:00:00 2001 From: "Jan (janneke) Nieuwenhuizen" Date: Sun, 29 Jan 2023 12:05:32 +0100 Subject: [PATCH Shepherd] doc: Update user services example for `services already running'. The previously suggested example now gives Services already running, so not daemonizing. which is fixed by daemonizing right away. This is a follow-up to commit 3197c1c161d10b7f76771a2943f20fdafc5cc14a service: 'daemonize' action does nothing when services are already runn= ing. * doc/shepherd.texi (Managing User Services): Daemonize before starting services. --- doc/shepherd.texi | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/shepherd.texi b/doc/shepherd.texi index d25a8f2..538c334 100644 --- a/doc/shepherd.texi +++ b/doc/shepherd.texi @@ -13,7 +13,7 @@ Copyright @copyright{} @value{OLD-YEARS} Wolfgang J@"ahrl= ing@* Copyright @copyright{} @value{NEW-YEARS} Ludovic Court=C3=A8s@* Copyright @copyright{} 2020 Brice Waegeneire@* Copyright @copyright{} 2020 Oleg Pykhalov -Copyright @copyright{} 2020 Jan (janneke) Nieuwenhuizen@* +Copyright @copyright{} 2020, 2023 Jan (janneke) Nieuwenhuizen@* =20 Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or @@ -1353,6 +1353,9 @@ load individual service definitions from (use-modules (shepherd service) ((ice-9 ftw) #:select (scandir))) =20 +;; Send shepherd into the background +(action 'shepherd 'daemonize) + ;; Load all the files in the directory 'init.d' with a suffix '.scm'. (for-each (lambda (file) @@ -1361,8 +1364,6 @@ load individual service definitions from (lambda (file) (string-suffix? ".scm" file)))) =20 -;; Send shepherd into the background -(action 'shepherd 'daemonize) @end lisp =20 Then, individual user services can be put in --=20 2.38.1 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable --=20 Janneke Nieuwenhuizen | GNU LilyPond https://LilyPond.org Freelance IT https://www.JoyOfSource.com | Avatar=C2=AE https://AvatarAcade= my.com --=-=-=-- ------------=_1677959582-10517-1--