summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Mair-Keimberger <m.mairkeimberger@gmail.com>2018-10-03 19:44:31 +0200
committerMichał Górny <mgorny@gentoo.org>2018-10-20 00:34:42 +0200
commit3bb59b34fd805ca7e4c3c5d7c47d01a4b87e81ba (patch)
tree976b0d0478e7a13aa7d9b1ade9b3025763e59640 /net-dns/dnrd/files/dnrd
parentdev-libs/botan: version bump (diff)
downloadgentoo-3bb59b34fd805ca7e4c3c5d7c47d01a4b87e81ba.tar.gz
gentoo-3bb59b34fd805ca7e4c3c5d7c47d01a4b87e81ba.tar.bz2
gentoo-3bb59b34fd805ca7e4c3c5d7c47d01a4b87e81ba.zip
net-dns/dnrd: EAPI7 revbump, improve ebuild
Closes: https://bugs.gentoo.org/667660 Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/10054 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'net-dns/dnrd/files/dnrd')
-rw-r--r--net-dns/dnrd/files/dnrd9
1 files changed, 6 insertions, 3 deletions
diff --git a/net-dns/dnrd/files/dnrd b/net-dns/dnrd/files/dnrd
index 9fb87107b7a8..4fcc2112cf2e 100644
--- a/net-dns/dnrd/files/dnrd
+++ b/net-dns/dnrd/files/dnrd
@@ -1,5 +1,5 @@
#!/sbin/openrc-run
-# Copyright 1999-2003 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License, v2 or later
PIDFILE="/var/run/dnrd.pid"
@@ -11,13 +11,16 @@ depend() {
start() {
ebegin "Starting dnrd"
- /usr/sbin/dnrd $DNRD_OPTS &> /dev/null &
+ start-stop-daemon --start \
+ --pidfile ${PIDFILE} \
+ --exec /usr/sbin/dnrd \
+ -- ${DNRD_OPTS}
eend $?
}
stop() {
ebegin "Stopping dnrd"
- /usr/sbin/dnrd -k
+ start-stop-daemon --stop --quiet --pidfile ${PIDFILE}
eend $?
}