[package] add package for BIRD Internet Routing Daemon
[openwrt/svn-archive/archive.git] / net / bird / files / bird4.init
1 #!/bin/sh /etc/rc.common
2
3 START=50
4
5 # Birdloop is used to restart BIRD if it crashed. Unfortunately, it also
6 # hides and handles in the same manner start-time errors (like parse error
7 # in config file). Therefore, it is not used by default. If you want to
8 # use it, comment the first line and uncomment the second line in start().
9
10 start() {
11 /usr/sbin/bird4
12 # /usr/sbin/bird4loop
13 }
14
15 stop() {
16 killall bird4
17 sleep 1
18 }
19
20 reload() {
21 killall -HUP bird4
22 }