summaryrefslogtreecommitdiff
path: root/dnscrypt-proxy.initd
blob: fe5745088515c1f5ec57c09c5a8e5546413e2cd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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_PROXY_OPTS}"
pidfile="/run/${RC_SVCNAME}.pid"
start_stop_daemon_args="--background --make-pidfile"

depend() {
        use logger net
        provide dns
}

stop_pre() {
        pkill -u dnscrypt-proxy
}