3 # avahi-dnsconfd: 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
21 if [ $1 == 'status' ]; then
22 test -x $AVAHI_BIN || exit 4
24 test -x $AVAHI_BIN || exit 5
27 LOCKFILE=/var/lock/subsys/avahi-dnsconfd
32 # Check that networking is configured.
33 [ ${NETWORKING} = "no" ] && exit 1
35 echo -n $"Starting Avahi DNS daemon... "
38 if [ $RETVAL = 0 ]; then
40 success $"$base startup"
42 failure $"$base startup"
49 echo -n $"Shutting down Avahi DNS daemon: "
52 [ $RETVAL = 0 ] && success $"$base shutdown" || failure $"$base shutdown"
59 echo -n $"Reloading Avahi DNS daemon... "
62 [ $RETVAL = 0 ] && success $"$base startup" || failure $"$base startup"
74 # See how we were called.
85 [ $RETVAL = 0 ] && echo $"Avahi DNS daemon is running" || echo $"Avahi DNS daemon is not running"
94 if [ -f $LOCKFILE ]; then
99 echo $"Usage: $0 {start|stop|status|restart|condrestart}"