From: Sebastien Estienne Date: Tue, 11 Apr 2006 15:55:14 +0000 (+0000) Subject: fix on SuSe when avahi-dnsconfd is started before avahi-daemon closing bug #31 X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=061889f6df26b1f4f0f53b6336a8e92611889c4d;p=catta fix on SuSe when avahi-dnsconfd is started before avahi-daemon closing bug #31 git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1187 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- diff --git a/initscript/suse/avahi-daemon.in b/initscript/suse/avahi-daemon.in index 1625464..b364a8c 100644 --- a/initscript/suse/avahi-daemon.in +++ b/initscript/suse/avahi-daemon.in @@ -17,6 +17,15 @@ case "$1" in start) echo -n "Starting Avahi daemon" /sbin/startproc $AVAHI_BIN -D + rc_check + for (( n=0 ; n<10 ; n++ )) ; do + if test -f /var/run/avahi-daemon/pid ; then + break + else + echo -n "." + sleep 1 + fi + done rc_status -v ;; stop)