3 # avahi-dnsconfd: Starts the Avahi dns configuration daemon
7 # description: avahi-dnsconfd connects to a running avahi-daemon and runs the script \
8 # /etc/avahi/dnsconf.action for each unicast DNS server that is announced \
9 # on the local LAN. This is useful for configuring unicast DNS servers in \
10 # a DHCP-like fashion with mDNS.
15 # Source function library
16 . /etc/rc.d/init.d/functions
19 . /etc/sysconfig/network
21 # Check that networking is up.
22 if is_yes "${NETWORKING}"; then
23 if [ ! -f /var/lock/subsys/network ]; then
24 msg_network_down "avahi-dnsconfd"
32 # Check if the service is already running?
33 if [ -f /var/lock/subsys/avahi-dnsconfd ]; then
34 msg_already_running "avahi-dnsconfd"
38 msg_starting "avahi-dnsconfd"
39 daemon /usr/sbin/avahi-dnsconfd -D
41 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/avahi-dnsconfd
45 if [ ! -f /var/lock/subsys/avahi-dnsconfd ]; then
46 msg_not_running "avahi-dnsconfd"
51 msg_stopping "avahi-dnsconfd"
52 avahi-dnsconfd -k && ok || fail
53 rm -f /var/lock/subsys/avahi-dnsconfd
57 if [ ! -f /var/lock/subsys/avahi-dnsconfd ]; then
58 msg_not_running "avahi-dnsconfd"
63 msg_reloading "avahi-dnsconfd"
69 if [ ! -f /var/lock/subsys/avahi-dnsconfd ]; then
70 msg_not_running "avahi-dnsconfd"
81 # See how we were called.
100 status avahi-dnsconfd
104 msg_usage "$0 {start|stop|restart|reload|force-reload|try-restart|status}"