]> git.pld-linux.org Git - packages/unbound.git/blobdiff - unbound.init
rel 2; fix service unbound status
[packages/unbound.git] / unbound.init
index 894b5227630bb3e45d756165dd68b694613a67fa..88eed523fd4dc87167ac64cca93493bcc04f972f 100644 (file)
@@ -70,29 +70,15 @@ case "$1" in
        ;;
   status)
        status unbound
-       RETVAL=$?
-       if [ -f /etc/rndc.conf ]; then
-               /usr/sbin/rndc status
-               RET=$?
-               if [ $RET -ne 0 ]; then
-                       RETVAL=$RET
-               fi
-       fi
        ;;
   reload|force-reload)
        if [ -f /var/lock/subsys/unbound ]; then
-               if [ -f /etc/rndc.conf ]; then
-                       run_cmd "$(nls 'Reloading %s service' 'Unbound')" /usr/sbin/rndc reload
-               else
-                       msg_reloading "Unbound"
-                       killproc unbound -HUP
-                       RETVAL=$?
-               fi
+               msg_reloading "Unbound"
+               killproc unbound -HUP
        else
                msg_not_running "Unbound"
                exit 7
        fi
-
        ;;
   restart)
        stop
This page took 0.023115 seconds and 4 git commands to generate.