From 194ccecf778faf28be0bce31c629211feb6f1a0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Mon, 27 Jun 2016 21:17:05 +0200 Subject: [PATCH] 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. --- gnu/services/avahi.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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