summaryrefslogtreecommitdiff
path: root/community/dnscrypt-proxy/dnscrypt-proxy.service
diff options
context:
space:
mode:
Diffstat (limited to 'community/dnscrypt-proxy/dnscrypt-proxy.service')
-rw-r--r--community/dnscrypt-proxy/dnscrypt-proxy.service20
1 files changed, 20 insertions, 0 deletions
diff --git a/community/dnscrypt-proxy/dnscrypt-proxy.service b/community/dnscrypt-proxy/dnscrypt-proxy.service
new file mode 100644
index 000000000..5e30d888e
--- /dev/null
+++ b/community/dnscrypt-proxy/dnscrypt-proxy.service
@@ -0,0 +1,20 @@
+[Unit]
+Description=A tool for securing communications between a client and a DNS resolver.
+After=network.target
+# Only needed if you use pdnsd, other caching DNS servers can go here. Could be ignored too.
+#Before=pdnsd.service
+
+[Service]
+Type=forking
+PIDFile=/var/run/dnscrypt-proxy.pid
+EnvironmentFile=/etc/conf.d/dnscrypt-proxy
+ExecStartPre=/bin/rm -f /var/run/dnscrypt-proxy.pid
+ExecStart=/usr/bin/dnscrypt-proxy --daemonize \
+ --pidfile=/var/run/dnscrypt-proxy.pid \
+ --logfile=/var/log/dnscrypt-proxy.log \
+ --local-address=${DNSCRYPT_LOCALIP}:${DNSCRYPT_LOCALPORT} \
+ --user=${DNSCRYPT_USER}
+Restart=on-abort
+
+[Install]
+WantedBy=multi-user.target