diff options
author | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2018-07-14 11:25:14 -0700 |
---|---|---|
committer | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2018-07-14 11:25:14 -0700 |
commit | 875447c7b6641be2ed25bb240334530d47ae1140 (patch) | |
tree | 5c0ebefcce1b72ba22ac7c03ef7630f4aae7df41 /dnscrypt-proxy.initd | |
download | dnscrypt-proxy-openrc-875447c7b6641be2ed25bb240334530d47ae1140.tar.xz |
Initial commit
Diffstat (limited to 'dnscrypt-proxy.initd')
-rw-r--r-- | dnscrypt-proxy.initd | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/dnscrypt-proxy.initd b/dnscrypt-proxy.initd new file mode 100644 index 0000000..b958a14 --- /dev/null +++ b/dnscrypt-proxy.initd @@ -0,0 +1,19 @@ +!/usr/bin/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/${SVCNAME}.pid" +start_stop_daemon_args="--background --make-pidfile" + +depend() { + use net logger + provide dns +} + +start_pre() { + checkpath -q -d -m 0775 -o "${command_user}" /var/cache/"${SVCNAME}" + checkpath -q -d -m 0775 -o "${command_user}" /var/log/"${SVCNAME}" +} |