4 # Provides: avahi-dnsconfd
5 # Required-Start: avahi
8 # Description: A DNS configuration daemon using mDNS in a DHCP-like fashion
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-dnsconfd
20 test -x $AVAHI_BIN || exit 5
23 echo -n $"Starting Avahi DNS daemon: "
26 if [ $RETVAL = 0 ]; then
27 touch /var/lock/subsys/avahi-dnsconfd
28 success $"$base startup"
30 failure $"$base startup"
37 echo -n "Shutting down Avahi DNS daemon: "
40 if [ $RETVAL = 0 ]; then
41 rm -f /var/lock/subsys/avahi-dnsconfd
51 echo -n "Reloading Avahi DNS daemon: "
54 [ $RETVAL = 0 ] && success $"$base startup" || failure $"$base startup"
67 # See how we were called.
77 [ $? = 0 ] && echo "Avahi DNS daemon is running" || echo "Avahi DNS daemon is not running"
87 [ $? = 0 ] && restart || :
90 echo $"Usage: $0 {start|stop|status|restart|condrestart}"