aboutsummaryrefslogtreecommitdiffstats
path: root/community/dnscrypt-proxy/dnscrypt-proxy.initd
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2018-04-15 02:27:27 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2018-04-15 02:27:27 +0000
commit69c098affe35e96409e7948a476fa0d4387530ed (patch)
treef2ba756f0dcf034c82792057b7debac112ede34d /community/dnscrypt-proxy/dnscrypt-proxy.initd
parentf41c7ecc8b30d72f43a3cf0855c615fcf5e107f4 (diff)
downloadaports-69c098affe35e96409e7948a476fa0d4387530ed.tar.bz2
aports-69c098affe35e96409e7948a476fa0d4387530ed.tar.xz
community/dnscrypt-proxy: removed subdir in /var/run for pid file
Diffstat (limited to 'community/dnscrypt-proxy/dnscrypt-proxy.initd')
-rw-r--r--community/dnscrypt-proxy/dnscrypt-proxy.initd5
1 files changed, 2 insertions, 3 deletions
diff --git a/community/dnscrypt-proxy/dnscrypt-proxy.initd b/community/dnscrypt-proxy/dnscrypt-proxy.initd
index dfe004b576..bd6c1070a1 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/${SVCNAME}/${SVCNAME}.pid"
+pidfile="/run/${SVCNAME}.pid"
start_stop_daemon_args="--background --make-pidfile"
depend() {
@@ -16,7 +16,6 @@ depend() {
start_pre() {
checkpath -q -d -m 0775 -o "${command_user}" \
/var/cache/"${SVCNAME}" \
- /var/log/"${SVCNAME}" \
- /var/run/"${SVCNAME}"
+ /var/log/"${SVCNAME}"
setcap cap_net_bind_service=+ep "${command}"
}