diff options
author | 2023-07-24 18:51:06 -0500 | |
---|---|---|
committer | 2023-07-26 21:33:04 +0100 | |
commit | f78480292d1ae4d2a89762eb33fb72101af5d446 (patch) | |
tree | 6b7198ffb0397b32ff87da67bfe90bad246cfa52 /net-dns/knot-resolver/files | |
parent | gnome-extra/gnome-commander: Subscribe to subslots (diff) | |
download | gentoo-f78480292d1ae4d2a89762eb33fb72101af5d446.tar.gz gentoo-f78480292d1ae4d2a89762eb33fb72101af5d446.tar.bz2 gentoo-f78480292d1ae4d2a89762eb33fb72101af5d446.zip |
net-dns/knot-resolver: added OpenRC init script
Signed-off-by: Spencer Pavkovic <smp@nandre.com>
Closes: https://github.com/gentoo/gentoo/pull/32028
Signed-off-by: Matthew Smith <matthew@gentoo.org>
Diffstat (limited to 'net-dns/knot-resolver/files')
-rw-r--r-- | net-dns/knot-resolver/files/kresd.confd | 5 | ||||
-rw-r--r-- | net-dns/knot-resolver/files/kresd.initd | 23 |
2 files changed, 28 insertions, 0 deletions
diff --git a/net-dns/knot-resolver/files/kresd.confd b/net-dns/knot-resolver/files/kresd.confd new file mode 100644 index 000000000000..6749da309845 --- /dev/null +++ b/net-dns/knot-resolver/files/kresd.confd @@ -0,0 +1,5 @@ +# Copyright 1999-2023 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +KRESD_OPTS="-n /var/run/kresd" + +#KRESD_PIDFILE="/var/run/kresd.pid"
\ No newline at end of file diff --git a/net-dns/knot-resolver/files/kresd.initd b/net-dns/knot-resolver/files/kresd.initd new file mode 100644 index 000000000000..b443d98d749d --- /dev/null +++ b/net-dns/knot-resolver/files/kresd.initd @@ -0,0 +1,23 @@ +#!/sbin/openrc-run +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +command="/usr/sbin/kresd" +command_args="${KRESD_OPTS}" +pidfile="${KRESD_PIDFILE:-/var/run/${RC_SVCNAME}.pid}" +command_background=true +start_stop_daemon_args="--start -bm --pidfile ${pidfile} --exec ${command} -- ${command_args}" + +name="knot-resolver" +description="scaleable caching DNS resolver" + +depend() { + need net + use logger + provide dns +} + +start() { + checkpath --directory /var/run/kresd + default_start +} |