summaryrefslogtreecommitdiff
path: root/user/nsd/nsd.initd
diff options
context:
space:
mode:
authorLuis Ressel <aranea@aixah.de>2019-02-08 22:19:53 +0100
committerLuis Ressel <aranea@aixah.de>2019-02-16 18:43:44 +0100
commitfad97d18b3b4e56c0933b61a5801b060dcf99be5 (patch)
tree3937cee15733692ce33956fc3688b1d7bab2469d /user/nsd/nsd.initd
parente0af0d73c2d344338bed830d56358276e4b2cb8c (diff)
downloadpackages-fad97d18b3b4e56c0933b61a5801b060dcf99be5.tar.gz
packages-fad97d18b3b4e56c0933b61a5801b060dcf99be5.tar.bz2
packages-fad97d18b3b4e56c0933b61a5801b060dcf99be5.tar.xz
packages-fad97d18b3b4e56c0933b61a5801b060dcf99be5.zip
user/nsd: New package
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}"
+}