3
# bird Starts the Internet Routing Daemon.
5
# Author: Ondrej Feela Filip, <feela@network.cz>
8
# description: Internet routing daemon supporting IPv4 routing protocols:
9
# BGP4, RIPv2 and OSPFv2.
12
# config: /etc/bird.conf
15
# Source function library.
16
. /etc/rc.d/init.d/functions
18
[ -f /etc/sysconfig/network ] || exit 0
20
. /etc/sysconfig/network
25
[ -f /etc/bird.conf ] || BIRD4="no"
26
[ -f /usr/sbin/bird ] || BIRD4="no"
27
[ "${NETWORKING}" = "yes" ] || BIRD4="no"
29
[ -f /etc/bird-6.conf ] || BIRD6="no"
30
[ -f /usr/sbin/bird6 ] || BIRD6="no"
31
[ "${NETWORKING_IPV6}" = "yes" ] || BIRD6="no"
35
# See how we were called.
38
if [ "$BIRD4" = "yes" ]
40
echo -n "Starting BIRD for IPv4: "
44
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/bird
46
if [ "$BIRD6" = "yes" ]
48
echo -n "Starting BIRD for IPv6: "
52
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/bird6
56
echo -n "Stopping BIRD for IPv4: "
60
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/bird
62
echo -n "Stopping BIRD for IPv6: "
66
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/bird6
84
echo "Usage: bird.init {start|stop|status|restart|reload}"