guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[shepherd] 02/02: doc: Fix examples with ‘daemonize’ action.


From: Ludovic Courtès
Subject: [shepherd] 02/02: doc: Fix examples with ‘daemonize’ action.
Date: Wed, 20 Mar 2024 14:13:00 -0400 (EDT)

civodul pushed a commit to branch main
in repository shepherd.

commit 0fbba586cd1eafa28c827641f093cc9f3cdc1d00
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Wed Mar 20 17:27:20 2024 +0100

    doc: Fix examples with ‘daemonize’ action.
    
    Fixes <https://issues.guix.gnu.org/68591>.
    
    * doc/shepherd.texi (Managing User Services): Pass ‘root-service’
    instead of a symbol to ‘perform-service-action’.
    * modules/shepherd/support.scm (make-bare-init-file): Likewise.
    
    Reported-by: Einar Largenius <jaadu@lysator.liu.se>
---
 doc/shepherd.texi            | 2 +-
 modules/shepherd/support.scm | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/shepherd.texi b/doc/shepherd.texi
index 0c036bb..2a4517c 100644
--- a/doc/shepherd.texi
+++ b/doc/shepherd.texi
@@ -1663,7 +1663,7 @@ load individual service definitions from
              ((ice-9 ftw) #:select (scandir)))
 
 ;; Send shepherd into the background
-(perform-service-action 'shepherd 'daemonize)
+(perform-service-action root-service 'daemonize)
 
 ;; Load all the files in the directory 'init.d' with a suffix '.scm'.
 (for-each
diff --git a/modules/shepherd/support.scm b/modules/shepherd/support.scm
index bf70f2d..b501cfb 100644
--- a/modules/shepherd/support.scm
+++ b/modules/shepherd/support.scm
@@ -420,7 +420,7 @@ TARGET should be a string representing a filepath + name."
         "(register-services)\n\n"
         (l10n "\
 ;; Send shepherd into the background\n")
-        "(perform-service-action 'shepherd 'daemonize)\n\n"
+        "(perform-service-action root-service 'daemonize)\n\n"
         (l10n "\
 ;; Services to start when shepherd starts:
 ;; Add the name of each service that should be started to the list



reply via email to

[Prev in Thread] Current Thread [Next in Thread]