aports/testing/knot-resolver4/knot-resolver4.initd
tcely 49bb78227d testing/knot-resolver4: new aport
https://www.knot-resolver.cz/
Minimalistic caching DNS resolver implementation

This is for testing the major upgrade from 3.2.1.

* add -openrc files
2019-04-22 20:14:22 +00:00

25 lines
526 B
Plaintext

#!/sbin/openrc-run
: ${config:="/etc/knot-resolver/kresd.conf"}
: ${cachedir:="/var/cache/knot-resolver"}
: ${logfile:="/var/log/knot-resolver4.log"}
command="/usr/sbin/kresd"
# Note: Do not change forks=1, it's buggy.
command_args="--config=$config --forks=1 $cachedir"
command_background="yes"
pidfile="/run/$RC_SVCNAME.pid"
start_stop_daemon_args="
--chdir=$cachedir
--stdout=$logfile
--stderr=$logfile"
required_files="$config"
depend() {
need net
}
start_pre() {
checkpath -d -m 750 -o kresd:kresd "$cachedir"
}