~ruther/guix-local

194ccecf778faf28be0bce31c629211feb6f1a0a — Ludovic Courtès 9 years ago 037f9e0
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.
1 files changed, 2 insertions(+), 1 deletions(-)

M gnu/services/avahi.scm
M gnu/services/avahi.scm => gnu/services/avahi.scm +2 -1
@@ 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