aboutsummaryrefslogtreecommitdiffstats
path: root/testing/bird/bird.initd
blob: f3b51aa43ff357cd62e3dd8e6f2aa3e690b55a0d (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/runscript

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 $?
}