me
/
guix
Archived
1
0
Fork 0

services: syslog: Add 'configuration' action.

* gnu/services/base.scm (syslog-service-type): Add 'actions' field.
master
Ludovic Courtès 2023-03-27 09:42:20 +02:00
parent da410b45a9
commit 384856c9fb
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 5 additions and 2 deletions

View File

@ -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.