5 # Required-Start: $network messagebus
6 # Required-Stop: $network messagebus
8 # Description: Avahi, a ZeroConf daemon whichs implements an mDNS stack
11 AVAHI_BIN=@sbindir@/avahi-daemon
12 test -x $AVAHI_BIN || exit 5
14 # Source function library.
15 . /etc/init.d/functions
17 . /etc/sysconfig/network
19 # Check that networking is configured.
20 [ "${NETWORKING}" = "no" ] && exit 0
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}"