summaryrefslogtreecommitdiff
path: root/user/unbound/unbound.initd
diff options
context:
space:
mode:
Diffstat (limited to 'user/unbound/unbound.initd')
-rw-r--r--user/unbound/unbound.initd16
1 files changed, 16 insertions, 0 deletions
diff --git a/user/unbound/unbound.initd b/user/unbound/unbound.initd
new file mode 100644
index 000000000..0ffc19aba
--- /dev/null
+++ b/user/unbound/unbound.initd
@@ -0,0 +1,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}"
+}