3 # avahi-daemon: Starts the Avahi dns configuration daemon
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
27 echo -n $"Starting Avahi DNS daemon... "
30 [ $RETVAL = 0 ] && success $"$base startup" || failure $"$base startup"
36 echo -n "Shutting down Avahi DNS daemon: "
44 echo -n "Reloading Avahi DNS daemon... "
47 [ $RETVAL = 0 ] && success $"$base startup" || failure $"$base startup"
60 # See how we were called.
70 [ $? = 0 ] && echo "Avahi DNS daemon is running" || echo "Avahi DNS daemon is not running"
80 [ $? = 0 ] && restart || :
83 echo $"Usage: $0 {start|stop|status|restart|condrestart}"