]> git.pld-linux.org Git - packages/avahi.git/blobdiff - avahi-dnsconfd
- merge force-reload to reload
[packages/avahi.git] / avahi-dnsconfd
index cc0d560f91d8cc07cbee56a11d7e35a1a742bf06..02ae6be3a0ccee859e998ad828a76eac50f5e660 100644 (file)
@@ -2,7 +2,7 @@
 #
 # avahi-dnsconfd:      Starts the Avahi dns configuration daemon
 #
-# chkconfig:           345 34 66
+# chkconfig:           345 35 65
 #
 # description: avahi-dnsconfd connects to a running avahi-daemon and runs the script \
 #              /etc/avahi/dnsconf.action for each unicast DNS server that is announced \
@@ -45,8 +45,9 @@ case "$1" in
        if [ -f /var/lock/subsys/avahi-dnsconfd ]; then
                # Stop daemons.
                msg_stopping avahi-dnsconfd
-               killproc avahi-dnsconfd
+               avahi-dnsconfd -k
                rm -f /var/lock/subsys/avahi-dnsconfd
+               ok
        else
                msg_not_running avahi-dnsconfd
        fi
@@ -59,7 +60,7 @@ case "$1" in
   reload)
        if [ -f /var/lock/subsys/avahi-dnsconfd ]; then
                msg_reloading avahi-dnsconfd
-               killproc avahi-dnsconfd -HUP
+               avahi-dnsconfd -r
                RETVAL=$?
        else
                msg_not_running avahi-dnsconfd >&2
@@ -82,4 +83,4 @@ esac
 exit $RETVAL
 
 # This must be last line !
-# vi:syntax=sh:tw=78:ts=8:sw=4
+# vi:syntax=sh:tw=78:ts=4:sw=4
This page took 0.050556 seconds and 4 git commands to generate.