blob: fb29c19bb09a014679bf0cb9d6a39a3446d7fca4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/sbin/openrc-run
extra_started_commands="reload"
name=bird
command=/usr/sbin/$name
sock="/var/run/$name.ctl"
command_args="-c /etc/${name}.conf -s $sock"
depend() {
need net
use logger
after firewall
}
start_pre() {
[ -f "/etc/$name.conf" ] && return 0
eerror "Please create /etc/$name.conf"
return 1
}
reload() {
ebegin "Reloading $name"
killall -HUP $command
eend $?
}
|