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
17 . /etc/sysconfig/network
19 AVAHI_BIN=@sbindir@/avahi-dnsconfd
20 if [ $1 == 'status' ]; then
21 test -x $AVAHI_BIN || exit 4
23 test -x $AVAHI_BIN || exit 5
26 LOCKFILE=/var/lock/subsys/avahi-dnsconfd
29 # Check that networking is configured.
30 [ ${NETWORKING} = "no" ] && exit 1
32 echo -n $"Starting Avahi DNS daemon... "
35 if [ $RETVAL = 0 ]; then
37 success $"$base startup"
39 failure $"$base startup"
46 echo -n $"Shutting down Avahi DNS daemon: "
49 [ $RETVAL = 0 ] && success $"$base shutdown" || failure $"$base shutdown"
56 echo -n $"Reloading Avahi DNS daemon... "
59 [ $RETVAL = 0 ] && success $"$base startup" || failure $"$base startup"
72 # See how we were called.
83 [ $RETVAL = 0 ] && echo $"Avahi DNS daemon is running" || echo $"Avahi DNS daemon is not running"
92 if [ -f $LOCKFILE ]; then
97 echo $"Usage: $0 {start|stop|status|restart|condrestart}"