summary refs log tree commit diff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2016-06-27 21:17:05 +0200
committerLudovic Courtès <ludo@gnu.org>2016-06-27 21:41:38 +0200
commit194ccecf778faf28be0bce31c629211feb6f1a0a (patch)
tree8956eabe46f100a9cddbc2697463b699b1b94383
parent037f9e07cd03d6894a6b5fc9a252c34d3b163962 (diff)
downloadguix-194ccecf778faf28be0bce31c629211feb6f1a0a.tar.gz
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.
-rw-r--r--gnu/services/avahi.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/services/avahi.scm b/gnu/services/avahi.scm
index 8005b066ed..7c3bdabff6 100644
--- a/gnu/services/avahi.scm
+++ b/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