mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
services: syslog: Add 'configuration' action.
* gnu/services/base.scm (syslog-service-type): Add 'actions' field.
This commit is contained in:
parent
da410b45a9
commit
384856c9fb
1 changed files with 5 additions and 2 deletions
|
@ -1554,14 +1554,17 @@ (define syslog-service-type
|
||||||
(shepherd-service-type
|
(shepherd-service-type
|
||||||
'syslog
|
'syslog
|
||||||
(lambda (config)
|
(lambda (config)
|
||||||
|
(define config-file
|
||||||
|
(syslog-configuration-config-file config))
|
||||||
|
|
||||||
(shepherd-service
|
(shepherd-service
|
||||||
(documentation "Run the syslog daemon (syslogd).")
|
(documentation "Run the syslog daemon (syslogd).")
|
||||||
(provision '(syslogd))
|
(provision '(syslogd))
|
||||||
(requirement '(user-processes))
|
(requirement '(user-processes))
|
||||||
|
(actions (list (shepherd-configuration-action config-file)))
|
||||||
(start #~(let ((spawn (make-forkexec-constructor
|
(start #~(let ((spawn (make-forkexec-constructor
|
||||||
(list #$(syslog-configuration-syslogd config)
|
(list #$(syslog-configuration-syslogd config)
|
||||||
"--rcfile"
|
"--rcfile" #$config-file)
|
||||||
#$(syslog-configuration-config-file config))
|
|
||||||
#:pid-file "/var/run/syslog.pid")))
|
#:pid-file "/var/run/syslog.pid")))
|
||||||
(lambda ()
|
(lambda ()
|
||||||
;; Set the umask such that file permissions are #o640.
|
;; Set the umask such that file permissions are #o640.
|
||||||
|
|
Loading…
Reference in a new issue