]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Minor changes in Fedora init script.
authorOndrej Filip <feela@network.cz>
Wed, 5 Feb 2014 14:57:37 +0000 (15:57 +0100)
committerOndrej Filip <feela@network.cz>
Wed, 5 Feb 2014 14:57:37 +0000 (15:57 +0100)
misc/bird.init

index 56842bfa3f380106f3f7ee64e933f32e853a29ba..23d6d8af5ba2b7f0a69c6b13b2f029585780df81 100755 (executable)
@@ -26,7 +26,7 @@ BIRD6="yes"
 [ -f /usr/sbin/bird ] || BIRD4="no"
 [ "${NETWORKING}" = "yes" ] || BIRD4="no"
 
-[ -f /etc/bird-6.conf ] || BIRD6="no"
+[ -f /etc/bird6.conf ] || BIRD6="no"
 [ -f /usr/sbin/bird6 ] || BIRD6="no"
 [ "${NETWORKING_IPV6}" = "yes" ] || BIRD6="no"
 
@@ -76,13 +76,17 @@ case "$1" in
        RETVAL=$?
        ;;
   reload)
-       killall -HUP bird
-       killall -HUP bird6
+       killproc bird -HUP
+       RETVAL=$?
+       echo
+       echo -n "Reloading BIRD for IPv6: "
+       killproc bird6 -HUP
        RETVAL=$?
+       echo
        ;;
   *)
        echo "Usage: bird.init {start|stop|status|restart|reload}"
        exit 1
 esac
 
-exit $REVAL
+exit $RETVAL