From 8191d359944bf4e8f922a36cd04b3ac7165e4953 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Tue, 17 Oct 2017 00:48:24 +1300 Subject: Add dnscrypt-proxy initscripts --- conf.d.in/dnscrypt-proxy.in | 1 + init.d.in/dnscrypt-proxy.in | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 conf.d.in/dnscrypt-proxy.in create mode 100755 init.d.in/dnscrypt-proxy.in 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 +} -- cgit v1.1