3 # avahi-daemon: Starts the Avahi Daemon
6 # description: This is a daemon which runs on client machines to perform \
7 # Zeroconf service discovery on a network. avahi-daemon must be \
8 # running on systems that use Avahi for service discovery. \
9 # Avahi-daemon should not be running otherwise.
10 # processname: avahi-daemon
15 # Source function library.
16 . /etc/init.d/functions
18 . /etc/sysconfig/network
20 # Check that networking is configured.
21 [ ${NETWORKING} = "no" ] && exit 0
23 AVAHI_BIN=@sbindir@/avahi-daemon
24 test -x $AVAHI_BIN || exit 5
27 echo -n $"Starting Avahi daemon... "
30 [ $RETVAL = 0 ] && success $"$base startup" || failure $"$base startup"
36 echo -n "Shutting down Avahi daemon: "
44 echo -n "Reloading Avahi daemon... "
47 [ $RETVAL = 0 ] && success $"$base startup" || failure $"$base startup"
60 # See how we were called.
70 [ $? = 0 ] && echo "Avahi daemon is running" || echo "Avahi daemon is not running"
80 [ $? = 0 ] && restart || :
83 echo $"Usage: $0 {start|stop|status|restart|condrestart}"