diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2018-04-14 23:21:00 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2018-04-14 23:21:06 +0000 |
commit | 16384706001e9d272c45f747f6428d9428af2a20 (patch) | |
tree | 31b71a5dc26d48b92e21bfeb41ee25aedb22c43c /community/dnscrypt-proxy/dnscrypt-proxy.initd | |
parent | dd01b9795bc9a40c1cdc76124f5440b5d598a4ee (diff) | |
download | aports-16384706001e9d272c45f747f6428d9428af2a20.tar.bz2 aports-16384706001e9d272c45f747f6428d9428af2a20.tar.xz |
community/dnscrypt-proxy: fixed /var/run path init, added dependency
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}" } |