services: avahi: Pass --daemonize and check for the PID file.

This makes sure the service's 'start' finishes when avahi-daemon is
ready to process requests.

* gnu/services/avahi.scm (avahi-shepherd-service): Use --daemonize
instead of --syslog and add #:pid-file.
This commit is contained in:
Ludovic Courtès 2016-06-27 21:17:05 +02:00
parent 037f9e07cd
commit 194ccecf77
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 2 additions and 1 deletions

View File

@ -104,7 +104,8 @@
(start #~(make-forkexec-constructor
(list (string-append #$avahi "/sbin/avahi-daemon")
"--syslog" "-f" #$config)))
"--daemonize" "-f" #$config)
#:pid-file "/var/run/avahi-daemon/pid"))
(stop #~(make-kill-destructor))))))
(define avahi-service-type