summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
+}