diff options
Diffstat (limited to 'community/dnscrypt-proxy/dnscrypt-proxy.initd')
-rw-r--r-- | community/dnscrypt-proxy/dnscrypt-proxy.initd | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/community/dnscrypt-proxy/dnscrypt-proxy.initd b/community/dnscrypt-proxy/dnscrypt-proxy.initd index e24085f127..dfe004b576 100644 --- a/community/dnscrypt-proxy/dnscrypt-proxy.initd +++ b/community/dnscrypt-proxy/dnscrypt-proxy.initd @@ -5,7 +5,7 @@ command="/usr/bin/dnscrypt-proxy" command_args="${DNSCRYPT_OPTS:---config /etc/dnscrypt-proxy/dnscrypt-proxy.toml}" command_user="${DNSCRYPT_USER:-dnscrypt}:${DNSCRYPT_GROUP:-dnscrypt}" -pidfile="/run/dnscrypt-proxy/${SVCNAME}.pid" +pidfile="/run/${SVCNAME}/${SVCNAME}.pid" start_stop_daemon_args="--background --make-pidfile" depend() { @@ -14,6 +14,9 @@ depend() { } start_pre() { - checkpath -q -d -m 0775 -o "${command_user}" /var/cache/"${SVCNAME}" - checkpath -q -d -m 0775 -o "${command_user}" /var/log/"${SVCNAME}" + checkpath -q -d -m 0775 -o "${command_user}" \ + /var/cache/"${SVCNAME}" \ + /var/log/"${SVCNAME}" \ + /var/run/"${SVCNAME}" + setcap cap_net_bind_service=+ep "${command}" } |