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
26 LOCKFILE=/var/lock/subsys/avahi-daemon
31 echo -n $"Starting Avahi daemon... "
32 if [ -s /etc/localtime ]; then
33 cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
37 if [ $RETVAL = 0 ]; then
39 success $"$base startup"
41 failure $"$base startup"
48 echo -n $"Shutting down Avahi daemon: "
51 [ $RETVAL = 0 ] && success $"$base shutdown" || failure $"$base shutdown"
58 echo -n $"Reloading Avahi daemon... "
61 [ $RETVAL = 0 ] && success $"$base reload" || failure $"$base reload"
73 # See how we were called.
83 [ $? = 0 ] && echo $"Avahi daemon is running" || echo $"Avahi daemon is not running"
92 if [ -f $LOCKFILE ]; then
97 echo $"Usage: $0 {start|stop|status|restart|condrestart}"