aboutsummaryrefslogtreecommitdiffstats
path: root/community/dnscrypt-proxy/dnscrypt-proxy.initd
diff options
context:
space:
mode:
Diffstat (limited to 'community/dnscrypt-proxy/dnscrypt-proxy.initd')
-rw-r--r--community/dnscrypt-proxy/dnscrypt-proxy.initd11
1 files changed, 5 insertions, 6 deletions
diff --git a/community/dnscrypt-proxy/dnscrypt-proxy.initd b/community/dnscrypt-proxy/dnscrypt-proxy.initd
index bd6c1070a1..626b15737e 100644
--- a/community/dnscrypt-proxy/dnscrypt-proxy.initd
+++ b/community/dnscrypt-proxy/dnscrypt-proxy.initd
@@ -3,10 +3,10 @@
# Distributed under the terms of the GNU General Public License v2
command="/usr/bin/dnscrypt-proxy"
-command_args="${DNSCRYPT_OPTS:---config /etc/dnscrypt-proxy/dnscrypt-proxy.toml}"
+command_args="${DNSCRYPT_OPTS:--config /etc/dnscrypt-proxy/dnscrypt-proxy.toml}"
command_user="${DNSCRYPT_USER:-dnscrypt}:${DNSCRYPT_GROUP:-dnscrypt}"
-pidfile="/run/${SVCNAME}.pid"
-start_stop_daemon_args="--background --make-pidfile"
+pidfile="/run/${RC_SVCNAME}.pid"
+command_background="yes"
depend() {
use net logger
@@ -15,7 +15,6 @@ depend() {
start_pre() {
checkpath -q -d -m 0775 -o "${command_user}" \
- /var/cache/"${SVCNAME}" \
- /var/log/"${SVCNAME}"
- setcap cap_net_bind_service=+ep "${command}"
+ /var/cache/"${RC_SVCNAME}" \
+ /var/log/"${RC_SVCNAME}"
}