2010-04-10 18:33:04 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
BIRD=/usr/sbin/bird6
|
|
|
|
|
2011-11-13 22:16:25 +00:00
|
|
|
$BIRD -p || return 1
|
2010-04-10 18:33:04 +00:00
|
|
|
|
2011-11-13 22:16:25 +00:00
|
|
|
. /lib/functions.sh
|
2010-04-10 18:33:04 +00:00
|
|
|
|
2011-11-13 22:16:25 +00:00
|
|
|
SERVICE_DAEMONIZE=1
|
|
|
|
SERVICE_WRITE_PID=1
|
|
|
|
|
|
|
|
sig_handler() {
|
|
|
|
running=0
|
|
|
|
service_stop $BIRD
|
|
|
|
}
|
|
|
|
|
|
|
|
running=1
|
|
|
|
trap sig_handler INT
|
|
|
|
trap sig_handler TERM
|
|
|
|
while [ $running -gt 0 ]; do
|
|
|
|
service_check $BIRD || service_start $BIRD -d "$@"
|
|
|
|
sleep 3
|
|
|
|
done
|