diff options
author | Ludovic Courtès <ludo@gnu.org> | 2023-03-27 09:42:20 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2023-03-27 18:48:51 +0200 |
commit | 384856c9fbe76d107107f49a575fc5c26e4e332e (patch) | |
tree | 90dc903d644dfc937ae143536f95a1a7ca5a832c /gnu/services/base.scm | |
parent | da410b45a93c42b07c7ea6a514eafa5e7cf4e497 (diff) | |
download | guix-384856c9fbe76d107107f49a575fc5c26e4e332e.tar.gz |
services: syslog: Add 'configuration' action.
* gnu/services/base.scm (syslog-service-type): Add 'actions' field.
Diffstat (limited to 'gnu/services/base.scm')
-rw-r--r-- | gnu/services/base.scm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gnu/services/base.scm b/gnu/services/base.scm index 2c984a0747..5b0b3bb0ab 100644 --- a/gnu/services/base.scm +++ b/gnu/services/base.scm @@ -1554,14 +1554,17 @@ Service Switch}, for an example." (shepherd-service-type 'syslog (lambda (config) + (define config-file + (syslog-configuration-config-file config)) + (shepherd-service (documentation "Run the syslog daemon (syslogd).") (provision '(syslogd)) (requirement '(user-processes)) + (actions (list (shepherd-configuration-action config-file))) (start #~(let ((spawn (make-forkexec-constructor (list #$(syslog-configuration-syslogd config) - "--rcfile" - #$(syslog-configuration-config-file config)) + "--rcfile" #$config-file) #:pid-file "/var/run/syslog.pid"))) (lambda () ;; Set the umask such that file permissions are #o640. |