summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2017-10-17 00:48:24 +1300
committerDavid Phillips <david@sighup.nz>2017-10-17 00:48:24 +1300
commit8191d359944bf4e8f922a36cd04b3ac7165e4953 (patch)
treeb5d6b20a0016cbbbc67c4a936863d8acb5627b37
parent699efccc4670338e1cf632e1bf515f431b9ffed7 (diff)
downloadinitscripts-8191d359944bf4e8f922a36cd04b3ac7165e4953.tar.xz
Add dnscrypt-proxy initscripts
-rw-r--r--conf.d.in/dnscrypt-proxy.in1
-rwxr-xr-xinit.d.in/dnscrypt-proxy.in12
2 files changed, 13 insertions, 0 deletions
diff --git a/conf.d.in/dnscrypt-proxy.in b/conf.d.in/dnscrypt-proxy.in
new file mode 100644
index 0000000..d77974c
--- /dev/null
+++ b/conf.d.in/dnscrypt-proxy.in
@@ -0,0 +1 @@
+CONFIG_FILE="@SYSCONFDIR@/dnscrypt-proxy.conf"
diff --git a/init.d.in/dnscrypt-proxy.in b/init.d.in/dnscrypt-proxy.in
new file mode 100755
index 0000000..b4a5334
--- /dev/null
+++ b/init.d.in/dnscrypt-proxy.in
@@ -0,0 +1,12 @@
+#!@OPENRC_RUN@
+
+pidfile=/run/dnscrypt-proxy.pid
+command="@BINDIR@dnscrypt-proxy"
+command_args="${CONFIG_FILE}"
+command_background=yes
+
+depend() {
+ need net
+ use logger
+ provide dns
+}