mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 03:05:48 +03:00
update to 2.0.10 r1 move setcap to APKBUILD patch default config log and configuration file locations
20 lines
536 B
Text
20 lines
536 B
Text
#!/sbin/openrc-run
|
|
# Copyright 1999-2018 Gentoo Foundation
|
|
# 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_user="${DNSCRYPT_USER:-dnscrypt}:${DNSCRYPT_GROUP:-dnscrypt}"
|
|
pidfile="/run/${RC_SVCNAME}.pid"
|
|
command_background="yes"
|
|
|
|
depend() {
|
|
use net logger
|
|
provide dns
|
|
}
|
|
|
|
start_pre() {
|
|
checkpath -q -d -m 0775 -o "${command_user}" \
|
|
/var/cache/"${RC_SVCNAME}" \
|
|
/var/log/"${RC_SVCNAME}"
|
|
}
|