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.
14 # Source function library
15 . /etc/rc.d/init.d/functions
18 . /etc/sysconfig/network
20 # Check that networking is up.
21 if is_yes "${NETWORKING}"; then
22 if [ ! -f /var/lock/subsys/network ]; then
23 msg_network_down avahi-dnsconfd
31 # See how we were called.
34 # Check if the service is already running?
35 if [ ! -f /var/lock/subsys/avahi-dnsconfd ]; then
36 msg_starting avahi-dnsconfd
37 daemon avahi-dnsconfd -D
39 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/avahi-dnsconfd
41 msg_already_running avahi-dnsconfd
45 if [ -f /var/lock/subsys/avahi-dnsconfd ]; then
47 msg_stopping avahi-dnsconfd
49 rm -f /var/lock/subsys/avahi-dnsconfd
52 msg_not_running avahi-dnsconfd
61 if [ -f /var/lock/subsys/avahi-dnsconfd ]; then
62 msg_reloading avahi-dnsconfd
66 msg_not_running avahi-dnsconfd >&2
79 msg_usage "$0 {start|stop|restart|reload|force-reload|status}"
85 # This must be last line !
86 # vi:syntax=sh:tw=78:ts=4:sw=4