diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-07-26 22:32:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-07-26 22:32:29 +0100 |
commit | 0250b30ba9ae7ae15cc33f2a2acfd31bc936dfe9 (patch) | |
tree | ae2326788b7e4edc036e8faa1b87fb26b4333442 /net-dns/knot-resolver/files | |
parent | d1bfba210fcc5b5a1ebebbe8234ef70f018a73bb (diff) |
gentoo auto-resync : 26:07:2023 - 22:32:29
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 +} |