summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2019-12-04 12:57:29 -0800
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2019-12-04 13:01:44 -0800
commitfddb0093047f7894988be85053367612d550db48 (patch)
treece803e4231e37b935bb6cedc120de8934536d925 /net-dns/dnscrypt-proxy
parentnet-irc/telepathy-idle: fix 100% cpu usage and tests (diff)
downloadgentoo-fddb0093047f7894988be85053367612d550db48.tar.gz
gentoo-fddb0093047f7894988be85053367612d550db48.tar.bz2
gentoo-fddb0093047f7894988be85053367612d550db48.zip
net-dns/dnscrypt-proxy: fix missing initfile
accidentally mv file on bump instead of copying. Package-Manager: Portage-2.3.79, Repoman-2.3.17 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'net-dns/dnscrypt-proxy')
-rw-r--r--net-dns/dnscrypt-proxy/files/dnscrypt-proxy.initd19
1 files changed, 19 insertions, 0 deletions
diff --git a/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.initd b/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.initd
new file mode 100644
index 00000000000..e0fc08ad6a0
--- /dev/null
+++ b/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.initd
@@ -0,0 +1,19 @@
+#!/sbin/openrc-run
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+command="/usr/bin/dnscrypt-proxy"
+command_args="${DNSCRYPT_PROXY_OPTS:--config /etc/dnscrypt-proxy/dnscrypt-proxy.toml}"
+command_user="${DNSCRYPT_PROXY_USER:-dnscrypt-proxy}:${DNSCRYPT_PROXY_GROUP:-dnscrypt-proxy}"
+pidfile="/run/${RC_SVCNAME}.pid"
+start_stop_daemon_args="--background --make-pidfile"
+
+depend() {
+ use logger net
+ provide dns
+}
+
+start_pre() {
+ checkpath -q -d -m 0775 -o "${command_user}" /var/cache/"${RC_SVCNAME}"
+ checkpath -q -d -m 0775 -o "${command_user}" /var/log/"${RC_SVCNAME}"
+}