From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wM6zIUxY1mPgDQEAbAwnHQ (envelope-from ) for ; Sun, 29 Jan 2023 12:28:12 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id oK/GIExY1mOOmAAAG6o9tA (envelope-from ) for ; Sun, 29 Jan 2023 12:28:12 +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 01B7D31ACB for ; Sun, 29 Jan 2023 12:28:11 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pM5qu-0008QG-2i; Sun, 29 Jan 2023 06:28:04 -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 1pM5qt-0008Q8-4a for guix-patches@gnu.org; Sun, 29 Jan 2023 06:28:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pM5qs-0007hR-Mq for guix-patches@gnu.org; Sun, 29 Jan 2023 06:28:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pM5qs-0006lM-9o for guix-patches@gnu.org; Sun, 29 Jan 2023 06:28:02 -0500 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674991692; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=L6Y3CHxaWwN9pU5zkDGaMev4jMKNdO+hHrcz9SmNHjA=; b=Cg39yY0lR179iCuYo6vm/ZKqxSFyY/RgLiW7U2lSMyURIv83ozy7+UrwrfGtDhlXfdxbT/ ar2AeQcHsI/xcRUd5lhw2OSci9pDnwBk5/2Cg3WIrgL1+3pmlSndgO3dtwNxG9I9XGZ88C 0+X6UYqz/e7dymH/bFoaOnOnyqHL4+nWXKAwjvB2KAoTk3F7gdd8/Woij5enHZgr4F2Xlf JmJjfXNzD38GVlme5NieZgLfEnlCSLw4qahyq4G6QtxJ7NdaxN1j7RnboLjFqOYpQlGB3B wyjr+6+YSfmIW1bgNtU5gaAKuEPv6GMVUnUohx9FqRNblJDWToDgKEKJZtGepA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="Gg/Bv5Fi"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1674991692; a=rsa-sha256; cv=none; b=Su6eSGaDu2tBymVTUpKuHFzM+Ld59rOOnaZbvLies7CCsmcQ7IkcrhBJdCEnkUg7A/TaA6 Lkc4iAvQd8iDG+L09TjvEh0a2EMllnzix+U1IFAJ6mfte6tsEjxxZ4ynyBpZ4ZHQD1tMkO sFggSdy2/JqTwcV/CyAo8iNAdxQ1+4ogEUU6KUQ+fnmKJN1EJo9eRWq30lnB6kz+tF/8gs 9V9y+YXhMndsHdrgLcck0KoWXH9QjvMGBWzNnQ+tr4sIjIC7BSQSRCq23OJr9pK+gXIFXq ZM5DR74EWwKPx+CgJ95KipgLT+9Yl4opBbpMZstCc/C75A/VD+B02gypYas5/w== X-Spam-Score: -3.97 X-Migadu-Spam-Score: -3.97 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="Gg/Bv5Fi"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 01B7D31ACB X-Migadu-Scanner: scn1.migadu.com X-TUID: M2ihRf7mLp6W --=-=-= 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 --=-=-=--