]> git.meshlink.io Git - catta/commitdiff
fix on SuSe when avahi-dnsconfd is started before avahi-daemon closing bug #31
authorSebastien Estienne <sebastien.estienne@gmail.com>
Tue, 11 Apr 2006 15:55:14 +0000 (15:55 +0000)
committerSebastien Estienne <sebastien.estienne@gmail.com>
Tue, 11 Apr 2006 15:55:14 +0000 (15:55 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1187 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

initscript/suse/avahi-daemon.in

index 1625464dad508d5e42e9ae400d1c5052beefd13d..b364a8cd1c4f186984d314a055dd9c8e0054489f 100644 (file)
@@ -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)