From patchwork Sun Jan 29 11:27:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Janneke Nieuwenhuizen X-Patchwork-Id: 46511 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id E160827BBE9; Sun, 29 Jan 2023 11:28:15 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 39AEA27BBEB for ; Sun, 29 Jan 2023 11:28:12 +0000 (GMT) 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 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches 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 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 running. * 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@"ahrling@* Copyright @copyright{} @value{NEW-YEARS} Ludovic Courtès@* Copyright @copyright{} 2020 Brice Waegeneire@* Copyright @copyright{} 2020 Oleg Pykhalov -Copyright @copyright{} 2020 Jan (janneke) Nieuwenhuizen@* +Copyright @copyright{} 2020, 2023 Jan (janneke) Nieuwenhuizen@* 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))) +;; 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)))) -;; Send shepherd into the background -(action 'shepherd 'daemonize) @end lisp Then, individual user services can be put in -- 2.38.1