service: shepherd: All of the config file is in 'call-with-error-handling'.
* gnu/services/shepherd.scm (shepherd-configuration-file)[config]: Wrap all the body in 'call-with-error-handling'.master
parent
081bd3bd29
commit
234ea8a71c
|
@ -237,13 +237,14 @@ stored."
|
|||
(use-modules (srfi srfi-34)
|
||||
(system repl error-handling))
|
||||
|
||||
;; Arrange to spawn a REPL if loading one of FILES fails. This is
|
||||
;; better than a kernel panic.
|
||||
;; Arrange to spawn a REPL if something goes wrong. This is better
|
||||
;; than a kernel panic.
|
||||
(call-with-error-handling
|
||||
(lambda ()
|
||||
(apply register-services (map primitive-load '#$files))))
|
||||
(apply register-services (map primitive-load '#$files))
|
||||
|
||||
;; guix-daemon 0.6 aborts if 'PATH' is undefined, so work around it.
|
||||
;; guix-daemon 0.6 aborts if 'PATH' is undefined, so work around
|
||||
;; it.
|
||||
(setenv "PATH" "/run/current-system/profile/bin")
|
||||
|
||||
(format #t "starting services...~%")
|
||||
|
@ -259,7 +260,7 @@ stored."
|
|||
(start service)))
|
||||
'#$(append-map shepherd-service-provision
|
||||
(filter shepherd-service-auto-start?
|
||||
services)))))
|
||||
services)))))))
|
||||
|
||||
(gexp->file "shepherd.conf" config)))
|
||||
|
||||
|
|
Reference in New Issue