guix-commits
[Top][All Lists]
Advanced

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

[shepherd] 03/03: service: Remove 'cd' action of 'root'.


From: Ludovic Courtès
Subject: [shepherd] 03/03: service: Remove 'cd' action of 'root'.
Date: Sun, 26 Feb 2023 16:40:49 -0500 (EST)

civodul pushed a commit to branch master
in repository shepherd.

commit ffe09be54703ecd47daba19cb9dd06311fbc8187
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Sun Feb 26 22:17:34 2023 +0100

    service: Remove 'cd' action of 'root'.
    
    Changing the working directory of shepherd is not recommended; if one
    really wants to do that, there's still the 'eval' action.
    
    * modules/shepherd/service.scm (root-service): Remove 'cd' action.
---
 modules/shepherd/service.scm | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/modules/shepherd/service.scm b/modules/shepherd/service.scm
index 2c171d0..2c2deb2 100644
--- a/modules/shepherd/service.scm
+++ b/modules/shepherd/service.scm
@@ -2465,11 +2465,6 @@ we want to receive these signals."
                      (catch-system-error (prctl PR_SET_CHILD_SUBREAPER 1))
                      #t)
                    (primitive-exit 0))))))
-     (cd
-      "Change the working directory of shepherd.  This only makes sense
-when in interactive mode, i.e. with `--socket=none'."
-      (lambda (running dir)
-       (chdir dir)))
      ;; Restart it - that does not make sense, but
      ;; we're better off by implementing it due to the
      ;; default action.



reply via email to

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