dnscrypt-proxy_local 557 B

123456789101112131415161718192021
  1. #!/sbin/openrc-run
  2. # Copyright 1999-2018 Gentoo Foundation
  3. # Distributed under the terms of the GNU General Public License v2
  4. supervisor=supervise-daemon
  5. command="/usr/bin/dnscrypt-proxy"
  6. command_args="${DNSCRYPT_OPTS:--config /etc/dnscrypt-proxy/dnscrypt-proxy_local.toml}"
  7. command_user="${DNSCRYPT_USER:-dnscrypt}:${DNSCRYPT_GROUP:-dnscrypt}"
  8. pidfile="/run/${RC_SVCNAME}.pid"
  9. command_background="yes"
  10. depend() {
  11. use net logger
  12. }
  13. start_pre() {
  14. checkpath -q -d -m 0775 -o "${command_user}" \
  15. /var/cache/"${RC_SVCNAME}" \
  16. /var/log/"${RC_SVCNAME}"
  17. }