3 # bird Starts the Dynamic Route Daemon
7 # description: Dynamic Route Daemon for IPv4 routers
10 # config: /etc/bird.conf
13 # Source function library
14 . /etc/rc.d/init.d/functions
17 . /etc/sysconfig/network
20 [ -f /etc/sysconfig/bird-ipv4 ] && . /etc/sysconfig/bird-ipv4
22 # Check that networking is up.
23 if is_yes "${NETWORKING}"; then
24 if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
33 [ -f /etc/bird.conf ] || exit 0
36 # See how we were called.
39 # Check if the services are already running?
40 if [ ! -f /var/lock/subsys/bird-ipv4 ]; then
41 msg_starting "bird for IPv4"
42 daemon ${SERVICE_RUN_NICE_LEVEL} /usr/sbin/bird -u bird -g bird
44 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/bird-ipv4
46 msg_already_running "bird for IPv4"
50 if [ -f /var/lock/subsys/bird-ipv4 ]; then
51 msg_stopping "bird for IPv4"
53 rm -f /var/lock/subsys/bird-ipv4
55 msg_not_running "bird for IPv4"
59 if [ -f /var/lock/subsys/bird-ipv4 ]; then
60 msg_reloading "bird for IPv4"
64 msg_not_running "bird for IPv4"
78 msg_usage "$0 {start|stop|restart|reload|force-reload|status}"