3 # bird Starts the Dynamic Route Daemon
7 # description: Dynamic Route Daemon for IPv6 routers
9 # processname: bird-ipv6
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-ipv6 ] && . /etc/sysconfig/bird-ipv6
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-ipv6 ]; then
41 msg_starting "bird for IPv6"
42 daemon ${SERVICE_RUN_NICE_LEVEL} bird
44 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/bird-ipv6
46 msg_already_running "bird for IPv6"
51 if [ -f /var/lock/subsys/bird-ipv6 ]; then
52 msg_stopping "bird for IPv6"
54 rm -f /var/lock/subsys/bird-ipv6
56 msg_not_running "bird for IPv6"
69 msg_usage "$0 {start|stop|restart|force-reload|status}"