diff options
author | Sven Wegener <swegener@gentoo.org> | 2016-07-19 21:23:10 +0000 |
---|---|---|
committer | Sven Wegener <swegener@gentoo.org> | 2016-07-19 22:02:49 +0000 |
commit | 5150f75e101d89f146fb2286e768b12ac0c823d0 (patch) | |
tree | 7919eb4200427b669203908c1600dc93ee0243ae /net-dns | |
parent | net-dns/pdns-recursor: Fix sysconfdir location, bug #589188 (diff) | |
download | gentoo-5150f75e101d89f146fb2286e768b12ac0c823d0.tar.gz gentoo-5150f75e101d89f146fb2286e768b12ac0c823d0.tar.bz2 gentoo-5150f75e101d89f146fb2286e768b12ac0c823d0.zip |
net-dns/pdns-recursor: Rename init script, bug #322581
Package-Manager: portage-2.2.28
Signed-off-by: Sven Wegener <swegener@gentoo.org>
Diffstat (limited to 'net-dns')
-rw-r--r-- | net-dns/pdns-recursor/files/pdns-recursor | 28 | ||||
-rw-r--r-- | net-dns/pdns-recursor/pdns-recursor-4.0.0.ebuild | 2 |
2 files changed, 29 insertions, 1 deletions
diff --git a/net-dns/pdns-recursor/files/pdns-recursor b/net-dns/pdns-recursor/files/pdns-recursor new file mode 100644 index 000000000000..151176b5ad0e --- /dev/null +++ b/net-dns/pdns-recursor/files/pdns-recursor @@ -0,0 +1,28 @@ +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +extra_started_commands="ping" + +depend() { + need net +} + +start() { + ebegin "Starting PowerDNS Recursor" + /usr/sbin/pdns_recursor --daemon=yes &>/dev/null + eend $? +} + +stop() { + ebegin "Stopping PowerDNS Recursor" + /usr/sbin/rec_control quit &>/dev/null + eend $? +} + +ping() { + ebegin "Pinging PowerDNS Recursor" + /usr/sbin/rec_control ping &>/dev/null + eend $? +} diff --git a/net-dns/pdns-recursor/pdns-recursor-4.0.0.ebuild b/net-dns/pdns-recursor/pdns-recursor-4.0.0.ebuild index ac2fe3d8bacd..4fd1a47d7d59 100644 --- a/net-dns/pdns-recursor/pdns-recursor-4.0.0.ebuild +++ b/net-dns/pdns-recursor/pdns-recursor-4.0.0.ebuild @@ -50,7 +50,7 @@ src_install() { insinto /etc/powerdns doins "${FILESDIR}"/recursor.conf - doinitd "${FILESDIR}"/precursor + doinitd "${FILESDIR}"/pdns-recursor # Pretty ugly, uh? dodir /var/lib/powerdns/var/lib |