0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00

Merge commit 'origin/master' into socket

This commit is contained in:
Ondrej Zajicek 2014-02-06 16:47:43 +01:00
commit f48fa14214
2 changed files with 18 additions and 6 deletions

View File

@ -707,6 +707,9 @@ This argument can be omitted if there exists only a single instance.
that is routes, their metrics and (in case the <cf/all/ switch is given) that is routes, their metrics and (in case the <cf/all/ switch is given)
all their attributes. all their attributes.
<tag>show bfd sessions [<m/name/]</tag>
Show information about BFD sessions.
<p>You can specify a <m/prefix/ if you want to print routes for a <p>You can specify a <m/prefix/ if you want to print routes for a
specific network. If you use <cf>for <m/prefix or IP/</cf>, you'll get specific network. If you use <cf>for <m/prefix or IP/</cf>, you'll get
the entry which will be used for forwarding of packets to the given the entry which will be used for forwarding of packets to the given

View File

@ -22,14 +22,19 @@
BIRD4="yes" BIRD4="yes"
BIRD6="yes" BIRD6="yes"
BIRD4ARGS=
BIRD6ARGS=
[ -f /etc/bird.conf ] || BIRD4="no" [ -f /etc/bird.conf ] || BIRD4="no"
[ -f /usr/sbin/bird ] || BIRD4="no" [ -f /usr/sbin/bird ] || BIRD4="no"
[ "${NETWORKING}" = "yes" ] || 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" [ -f /usr/sbin/bird6 ] || BIRD6="no"
[ "${NETWORKING_IPV6}" = "yes" ] || BIRD6="no" [ "${NETWORKING_IPV6}" = "yes" ] || BIRD6="no"
[ -e /etc/sysconfig/bird ] && . /etc/sysconfig/bird
RETVAL=0 RETVAL=0
# See how we were called. # See how we were called.
@ -38,7 +43,7 @@ case "$1" in
if [ "$BIRD4" = "yes" ] if [ "$BIRD4" = "yes" ]
then then
echo -n "Starting BIRD for IPv4: " echo -n "Starting BIRD for IPv4: "
daemon bird daemon bird ${BIRD4ARGS}
RETVAL=$? RETVAL=$?
echo echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/bird [ $RETVAL -eq 0 ] && touch /var/lock/subsys/bird
@ -46,7 +51,7 @@ case "$1" in
if [ "$BIRD6" = "yes" ] if [ "$BIRD6" = "yes" ]
then then
echo -n "Starting BIRD for IPv6: " echo -n "Starting BIRD for IPv6: "
daemon bird6 daemon bird6 ${BIRD6ARGS}
RETVAL=$? RETVAL=$?
echo echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/bird6 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/bird6
@ -76,13 +81,17 @@ case "$1" in
RETVAL=$? RETVAL=$?
;; ;;
reload) reload)
killall -HUP bird killproc bird -HUP
killall -HUP bird6 RETVAL=$?
echo
echo -n "Reloading BIRD for IPv6: "
killproc bird6 -HUP
RETVAL=$? RETVAL=$?
echo
;; ;;
*) *)
echo "Usage: bird.init {start|stop|status|restart|reload}" echo "Usage: bird.init {start|stop|status|restart|reload}"
exit 1 exit 1
esac esac
exit $REVAL exit $RETVAL