aboutsummaryrefslogtreecommitdiffstats
path: root/testing/bird/bird.initd
blob: 3685af0d48814bc09ff3b28d443a5dd0c174f870 (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
28
#!/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 $?
}