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:
parent
037f9e07cd
commit
194ccecf77
|
@ -104,7 +104,8 @@
|
||||||
|
|
||||||
(start #~(make-forkexec-constructor
|
(start #~(make-forkexec-constructor
|
||||||
(list (string-append #$avahi "/sbin/avahi-daemon")
|
(list (string-append #$avahi "/sbin/avahi-daemon")
|
||||||
"--syslog" "-f" #$config)))
|
"--daemonize" "-f" #$config)
|
||||||
|
#:pid-file "/var/run/avahi-daemon/pid"))
|
||||||
(stop #~(make-kill-destructor))))))
|
(stop #~(make-kill-destructor))))))
|
||||||
|
|
||||||
(define avahi-service-type
|
(define avahi-service-type
|
||||||
|
|
Loading…
Reference in New Issue