Browse Source

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.
wip-offload-compression
Ludovic Courtès 6 years ago
parent
commit
194ccecf77
No known key found for this signature in database GPG Key ID: 90B11993D9AEBB5
  1. 3
      gnu/services/avahi.scm

3
gnu/services/avahi.scm

@ -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

Loading…
Cancel
Save