services: syslog: Use a PID file.

* gnu/services/base.scm (syslog-service-type)[start]: Remove --no-detach
and use #:pid-file.
This commit is contained in:
Ludovic Courtès 2016-09-07 11:25:00 +02:00
parent e4a01b7d4d
commit afa54a38b7
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 2 additions and 2 deletions

View File

@ -907,8 +907,8 @@ Service Switch}, for an example."
(requirement '(user-processes))
(start #~(make-forkexec-constructor
(list #$(syslog-configuration-syslogd config)
"--no-detach"
"--rcfile" #$(syslog-configuration-config-file config))))
"--rcfile" #$(syslog-configuration-config-file config))
#:pid-file "/var/run/syslog.pid"))
(stop #~(make-kill-destructor))))))
;; Snippet adapted from the GNU inetutils manual.