diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-09-17 11:03:04 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-09-17 11:03:04 +0100 |
commit | 0968caae52d6eae7513e2ce4e0900a2e009780ee (patch) | |
tree | 54218d0d3baaf14b964427f98c4f90f13380ffd3 /net-dns/knot-resolver/files | |
parent | 58018a2c9504435bb719f2d60439ebe22fbeb503 (diff) |
gentoo auto-resync : 17:09:2023 - 11:03:03
Diffstat (limited to 'net-dns/knot-resolver/files')
-rw-r--r-- | net-dns/knot-resolver/files/kresd.confd-r1 | 9 | ||||
-rw-r--r-- | net-dns/knot-resolver/files/kresd.initd-r1 | 31 |
2 files changed, 40 insertions, 0 deletions
diff --git a/net-dns/knot-resolver/files/kresd.confd-r1 b/net-dns/knot-resolver/files/kresd.confd-r1 new file mode 100644 index 000000000000..2b67587c646a --- /dev/null +++ b/net-dns/knot-resolver/files/kresd.confd-r1 @@ -0,0 +1,9 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +#KRESD_USER=knot-resolver +#KRESD_GROUP=knot-resolver +#KRESD_CONFIG="/etc/knot-resolver/kresd.conf" +#KRESD_RUNDIR="/var/run/kresd" +#KRESD_PIDFILE="/var/run/kresd.pid" +KRESD_OPTS=""
\ No newline at end of file diff --git a/net-dns/knot-resolver/files/kresd.initd-r1 b/net-dns/knot-resolver/files/kresd.initd-r1 new file mode 100644 index 000000000000..9732b48cc2cb --- /dev/null +++ b/net-dns/knot-resolver/files/kresd.initd-r1 @@ -0,0 +1,31 @@ +#!/sbin/openrc-run +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +: ${KRESD_GROUP:=knot-resolver} +: ${KRESD_USER:=knot-resolver} +: ${KRESD_CONFIG:=/etc/knot-resolver/kresd.conf} +: ${KRESD_RUNDIR:=/var/run/kresd} +: ${KRESD_PIDFILE:=/var/run/kresd.pid} + +command="/usr/sbin/kresd" +command_args="${KRESD_OPTS} -n -c ${KRESD_CONFIG} ${KRESD_RUNDIR}" +command_user="${KRESD_USER}:${KRESD_GROUP}" +pidfile="${KRESD_PIDFILE}" +command_background=true +retry="TERM/60/KILL/5" + +capabilities="^cap_net_bind_service,^cap_setpcap" + +name="knot-resolver" +description="scaleable caching DNS resolver" + +depend() { + need net + use logger + provide dns +} + +start_pre() { + checkpath -d -m 0750 -o "${KRESD_USER}:${KRESD_GROUP}" ${KRESD_RUNDIR} +} |