diff options
author | Ondrej Filip <feela@network.cz> | 2014-02-05 15:57:37 +0100 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2014-02-05 15:57:37 +0100 |
commit | e9e6fbf924630abf821aa38f99e571f706536350 (patch) | |
tree | 3a66272e979c2d069792dfddcc99dc7407e7966c /misc | |
parent | ec35c7c2fc24e499a86022860c38460ae4bbad39 (diff) |
Minor changes in Fedora init script.
Diffstat (limited to 'misc')
-rwxr-xr-x | misc/bird.init | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/misc/bird.init b/misc/bird.init index 56842bfa..23d6d8af 100755 --- a/misc/bird.init +++ b/misc/bird.init @@ -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 |