diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2014-02-06 16:47:43 +0100 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2014-02-06 16:47:43 +0100 |
commit | f48fa14214301382b2e6b134788a7506b61b664f (patch) | |
tree | 9343862465641a2307027a94d7734e622dddd9cc /misc | |
parent | 6601a14831cdd32fc671ebc9dc299d2be427e489 (diff) | |
parent | 300e4008f02382b87409dabb52a317b8336de55b (diff) |
Merge commit 'origin/master' into socket
Diffstat (limited to 'misc')
-rwxr-xr-x | misc/bird.init | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/misc/bird.init b/misc/bird.init index 56842bfa..93aa83d6 100755 --- a/misc/bird.init +++ b/misc/bird.init @@ -22,14 +22,19 @@ BIRD4="yes" BIRD6="yes" +BIRD4ARGS= +BIRD6ARGS= + [ -f /etc/bird.conf ] || BIRD4="no" [ -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" +[ -e /etc/sysconfig/bird ] && . /etc/sysconfig/bird + RETVAL=0 # See how we were called. @@ -38,7 +43,7 @@ case "$1" in if [ "$BIRD4" = "yes" ] then echo -n "Starting BIRD for IPv4: " - daemon bird + daemon bird ${BIRD4ARGS} RETVAL=$? echo [ $RETVAL -eq 0 ] && touch /var/lock/subsys/bird @@ -46,7 +51,7 @@ case "$1" in if [ "$BIRD6" = "yes" ] then echo -n "Starting BIRD for IPv6: " - daemon bird6 + daemon bird6 ${BIRD6ARGS} RETVAL=$? echo [ $RETVAL -eq 0 ] && touch /var/lock/subsys/bird6 @@ -76,13 +81,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 |