5 # Required-Start: $network messagebus
6 # Required-Stop: $network messagebus
8 # Description: Avahi, a ZeroConf daemon whichs implements an mDNS stack
11 # Source function library.
12 . /etc/init.d/functions
14 . /etc/sysconfig/network
16 # Check that networking is configured.
17 [ ${NETWORKING} = "no" ] && exit 0
19 AVAHI_BIN=@sbindir@/avahi-daemon
20 test -x $AVAHI_BIN || exit 5
23 echo -n $"Starting Avahi daemon: "
26 if [ $RETVAL = 0 ]; then
27 touch /var/lock/subsys/avahi-daemon
28 success $"$base startup"
30 failure $"$base startup"
37 echo -n "Shutting down Avahi daemon: "
40 if [ $RETVAL = 0 ]; then
41 rm -f /var/lock/subsys/avahi-daemon
51 echo -n "Reloading Avahi daemon: "
54 [ $RETVAL = 0 ] && success $"$base startup" || failure $"$base startup"
67 # See how we were called.
77 [ $? = 0 ] && echo "Avahi daemon is running" || echo "Avahi daemon is not running"
87 [ $? = 0 ] && restart || :
90 echo $"Usage: $0 {start|stop|status|restart|condrestart}"