3 # avahi-daemon: Starts the Avahi dns configuration daemon
5 # chkconfig: - 34 98 02
6 # description: avahi-dnsconfd connects to a running avahi-daemon and runs the script
7 # /etc/avahi/dnsconf.action for each unicast DNS server that is announced
8 # on the local LAN. This is useful for configuring unicast DNS servers in
9 # a DHCP-like fashion with mDNS.
10 # processname: avahi-dnsconfd
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-dnsconfd
24 test -x $AVAHI_BIN || exit 5
26 LOCKFILE=/var/lock/subsys/avahi-daemon
29 echo -n $"Starting Avahi DNS daemon... "
32 if [ $RETVAL = 0 ]; then
34 success $"$base startup"
36 failure $"$base startup"
43 echo -n "Shutting down Avahi DNS daemon: "
46 [ $RETVAL = 0 ] && success $"$base shutdown" || failure $"$base shutdown"
53 echo -n "Reloading Avahi DNS daemon... "
56 [ $RETVAL = 0 ] && success $"$base startup" || failure $"$base startup"
69 # See how we were called.
80 [ $RETVAL = 0 ] && echo "Avahi DNS daemon is running" || echo "Avahi DNS daemon is not running"
89 if [ -f $LOCKFILE ]; then
94 echo $"Usage: $0 {start|stop|status|restart|condrestart}"