From 061889f6df26b1f4f0f53b6336a8e92611889c4d Mon Sep 17 00:00:00 2001 From: Sebastien Estienne Date: Tue, 11 Apr 2006 15:55:14 +0000 Subject: [PATCH] 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 --- initscript/suse/avahi-daemon.in | 9 +++++++++ 1 file changed, 9 insertions(+) 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) -- 2.39.5