summaryrefslogtreecommitdiff
path: root/dnscrypt-wrapper.initd
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2018-10-20 23:44:07 -0700
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2018-10-20 23:44:07 -0700
commit24760898aa6571f77bf768efc2e0f9ce3659b651 (patch)
treef04544efa8e2f30d021a1fbe47fbfb34f8163608 /dnscrypt-wrapper.initd
downloaddnscrypt-wrapper-openrc-24760898aa6571f77bf768efc2e0f9ce3659b651.tar.xz
Initial commit
Diffstat (limited to 'dnscrypt-wrapper.initd')
-rwxr-xr-xdnscrypt-wrapper.initd15
1 files changed, 15 insertions, 0 deletions
diff --git a/dnscrypt-wrapper.initd b/dnscrypt-wrapper.initd
new file mode 100755
index 0000000..b214e55
--- /dev/null
+++ b/dnscrypt-wrapper.initd
@@ -0,0 +1,15 @@
+#!/usr/bin/openrc-run
+
+command="/usr/bin/dnscrypt-wrapper"
+command_args="${DNSCRYPT_WRAPPER_RUNTIME_OPTS} ${DNSCRYPT_WRAPPER_KEY_OPTS} ${DNSCRYPT_WRAPPER_NETWORK_OPTS}"
+pidfile="/run/${RC_SVCNAME}.pid"
+start_stop_daemon_args="--background --make-pidfile"
+
+depend() {
+ use logger net
+ provide dns
+}
+
+stop_pre() {
+ pkill -u dnscrypt-wrapper
+}