summaryrefslogtreecommitdiff
path: root/user/nsd/nsd.initd
diff options
context:
space:
mode:
Diffstat (limited to 'user/nsd/nsd.initd')
-rw-r--r--user/nsd/nsd.initd15
1 files changed, 15 insertions, 0 deletions
diff --git a/user/nsd/nsd.initd b/user/nsd/nsd.initd
new file mode 100644
index 000000000..981e04ac7
--- /dev/null
+++ b/user/nsd/nsd.initd
@@ -0,0 +1,15 @@
+#!/sbin/openrc-run
+
+name="nsd"
+command="/usr/sbin/nsd"
+command_args="${nsd_opts}"
+pidfile="/run/nsd.pid"
+extra_started_commands="reload"
+
+depend() {
+ use logger net
+}
+
+reload() {
+ start-stop-daemon --signal HUP --pidfile "${pidfile}"
+}