projects
/
openwrt-10.03
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
modernize backfire 10.03 so it can be operational again
[openwrt-10.03/.git]
/
package
/
bird
/
files
/
bird4loop
1
#!/bin/sh
2
3
BIRD=/usr/sbin/bird4
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