projects
/
lede-routing
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[bird] Update to 1.4.0 and move bird6 to Routing and Redirection.
[lede-routing/.git]
/
bird
/
files
/
bird4loop
1
#!/bin/sh
2
3
BIRD="/usr/sbin/bird4 -c /etc/bird4.conf"
4
5
$BIRD -p || return 1
6
7
. /lib/functions.sh
8
. /lib/functions/service.sh
9
10
SERVICE_DAEMONIZE=1
11
SERVICE_WRITE_PID=1
12
13
sig_handler() {
14
running=0
15
service_stop $BIRD
16
}
17
18
running=1
19
trap sig_handler INT
20
trap sig_handler TERM
21
while [ $running -gt 0 ]; do
22
service_check $BIRD || service_start $BIRD -d "$@"
23
sleep 3
24
done