summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Estienne <sebastien.estienne@gmail.com>2006-04-11 15:55:14 +0000
committerSebastien Estienne <sebastien.estienne@gmail.com>2006-04-11 15:55:14 +0000
commit061889f6df26b1f4f0f53b6336a8e92611889c4d (patch)
treeaa71c3efd94515a9b565de20149635339c605300
parent173b5803b0871732f96635c27e5c35d181e35720 (diff)
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
-rw-r--r--initscript/suse/avahi-daemon.in9
1 files changed, 9 insertions, 0 deletions
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)