Rename '/root/etc/dmd' directory and 'do-not-kill' file.
* gnu/services/base.scm (%do-not-kill-file): Rename to "/etc/shepherd/do-not-kill". * gnu/build/linux-boot.scm (mount-root-file-system): Rename "/root/etc/dmd" to "/root/etc/shepherd".
This commit is contained in:
parent
34044d551f
commit
b8c02c18b4
|
@ -242,10 +242,10 @@ the last argument of `mknod'."
|
||||||
is true, mount ROOT read-only and make it a union with a writable tmpfs using
|
is true, mount ROOT read-only and make it a union with a writable tmpfs using
|
||||||
UNIONFS."
|
UNIONFS."
|
||||||
(define (mark-as-not-killable pid)
|
(define (mark-as-not-killable pid)
|
||||||
;; Tell the 'user-processes' dmd service that PID must be kept alive when
|
;; Tell the 'user-processes' shepherd service that PID must be kept alive
|
||||||
;; shutting down.
|
;; when shutting down.
|
||||||
(mkdir-p "/root/etc/dmd")
|
(mkdir-p "/root/etc/shepherd")
|
||||||
(let ((port (open-file "/root/etc/dmd/do-not-kill" "a")))
|
(let ((port (open-file "/root/etc/shepherd/do-not-kill" "a")))
|
||||||
(chmod port #o600)
|
(chmod port #o600)
|
||||||
(write pid port)
|
(write pid port)
|
||||||
(newline port)
|
(newline port)
|
||||||
|
|
|
@ -325,7 +325,7 @@ in KNOWN-MOUNT-POINTS when it is stopped."
|
||||||
(define %do-not-kill-file
|
(define %do-not-kill-file
|
||||||
;; Name of the file listing PIDs of processes that must survive when halting
|
;; Name of the file listing PIDs of processes that must survive when halting
|
||||||
;; the system. Typical example is user-space file systems.
|
;; the system. Typical example is user-space file systems.
|
||||||
"/etc/dmd/do-not-kill")
|
"/etc/shepherd/do-not-kill")
|
||||||
|
|
||||||
(define user-processes-service-type
|
(define user-processes-service-type
|
||||||
(dmd-service-type
|
(dmd-service-type
|
||||||
|
|
Loading…
Reference in New Issue