summaryrefslogtreecommitdiff
path: root/user/unbound/unbound.initd
blob: 0ffc19abaeb1e5b692b75968eb9a662ad2796777 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/sbin/openrc-run

name="unbound"
command="/usr/sbin/unbound"
command_args="${unbound_opts}"
pidfile="/run/unbound.pid"
extra_started_commands="reload"

depend() {
	use logger net
	provide dns
}

reload() {
	start-stop-daemon --signal HUP --pidfile "${pidfile}"
}