blob: 67828be1ea74a3840b2c1cb5ce0564483cace50f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/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}"
#command_user="${DNSCRYPT_PROXY_USER}:${DNSCRYPT_PROXY_GROUP}"
pidfile="/run/${RC_SVCNAME}.pid"
start_stop_daemon_args="--background --make-pidfile"
depend() {
use logger net
provide dns
}
stop_pre() {
pkill -u dnscrypt-proxy
}
|