diff options
author | Kurt Jaeger <pi@FreeBSD.org> | 2020-07-11 20:57:41 +0000 |
---|---|---|
committer | Kurt Jaeger <pi@FreeBSD.org> | 2020-07-11 20:57:41 +0000 |
commit | 542f7ceaf52d496aa6d5c52f614feeac4ec5dc3c (patch) | |
tree | 2b00b6c92e62824f22774c6eba695fa07867835a /dns/knot-resolver/files/kresd.in | |
parent | 6f10b9e8b32b7ee9e28585486b925e4536fdc78d (diff) | |
download | freebsd-ports-542f7ceaf52d496aa6d5c52f614feeac4ec5dc3c.zip |
dns/knot-resolver: update 5.1.1 -> 5.1.2
PR: 247699
Submitted by: Leo Vandewoestijne <freebsd@dns.company> (maintainer)
andrew@tao11.riddles.org.uk
Relnotes: https://www.knot-resolver.cz/2020-07-01-knot-resolver-5.1.2.html
Diffstat (limited to 'dns/knot-resolver/files/kresd.in')
-rw-r--r-- | dns/knot-resolver/files/kresd.in | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/dns/knot-resolver/files/kresd.in b/dns/knot-resolver/files/kresd.in new file mode 100644 index 000000000000..a9564262a366 --- /dev/null +++ b/dns/knot-resolver/files/kresd.in @@ -0,0 +1,37 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: kresd +# REQUIRE: NETWORKING +# BEFORE: SERVERS +# KEYWORD: shutdown +# +# Add the following lines to /etc/rc.conf to enable knot-resolver: +# +# kresd_enable="YES": Set to YES to enable kresd. +# Set to NO by default. +# kresd_config="": Set to %%ETCDIR%%/kresd.conf +# by default. +# + +. /etc/rc.subr + +name=kresd +rcvar=kresd_enable + +load_rc_config ${name} + +# set defaults + +kresd_enable=${kresd_enable:-"NO"} +kresd_config=${kresd_config:-"%%ETCDIR%%/${name}.conf"} + +pidfile="%%RUNDIR%%/${name}.pid" +procname="%%PREFIX%%/sbin/${name}" +required_files="${kresd_config}" + +command="/usr/sbin/daemon" +command_args="-c -f -S -r -P ${pidfile} -- ${procname} -c ${kresd_config} -n -q %%RUNDIR%%" + +run_rc_command "$1" |