diff options
author | Wolfram Schlich <wschlich@gentoo.org> | 2006-01-20 19:03:54 +0000 |
---|---|---|
committer | Wolfram Schlich <wschlich@gentoo.org> | 2006-01-20 19:03:54 +0000 |
commit | 05d15b85166d92c674eb167f990344fa7fc423e6 (patch) | |
tree | 83c460fb8f7bebbc665b29aa12476ecc6d3ffb97 /net-dns/pdns/files | |
parent | Bringing >=sci-misc/boinc-5.2.14 out of p.mask to receive wider testing. (diff) | |
download | gentoo-2-05d15b85166d92c674eb167f990344fa7fc423e6.tar.gz gentoo-2-05d15b85166d92c674eb167f990344fa7fc423e6.tar.bz2 gentoo-2-05d15b85166d92c674eb167f990344fa7fc423e6.zip |
add monitor and dump opts to init script, make config files go into /etc/powerdns, add pdns user+group
(Portage version: 2.1_pre3-r1)
Diffstat (limited to 'net-dns/pdns/files')
-rw-r--r-- | net-dns/pdns/files/digest-pdns-2.9.19-r1 | 1 | ||||
-rw-r--r-- | net-dns/pdns/files/pdns | 16 |
2 files changed, 15 insertions, 2 deletions
diff --git a/net-dns/pdns/files/digest-pdns-2.9.19-r1 b/net-dns/pdns/files/digest-pdns-2.9.19-r1 new file mode 100644 index 000000000000..06abdfafed44 --- /dev/null +++ b/net-dns/pdns/files/digest-pdns-2.9.19-r1 @@ -0,0 +1 @@ +MD5 30c96878b56845329cca5b8a351277b4 pdns-2.9.19.tar.gz 855801 diff --git a/net-dns/pdns/files/pdns b/net-dns/pdns/files/pdns index 2dd2ecb4ef7c..82ec1ff15e4b 100644 --- a/net-dns/pdns/files/pdns +++ b/net-dns/pdns/files/pdns @@ -1,9 +1,9 @@ #!/sbin/runscript # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-dns/pdns/files/pdns,v 1.5 2005/07/17 05:25:53 swegener Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dns/pdns/files/pdns,v 1.6 2006/01/20 19:03:54 wschlich Exp $ -opts="${opts} reload" +opts="${opts} reload monitor dump" # Default instance PDNS_INSTANCE="default" @@ -37,3 +37,15 @@ reload() { /usr/bin/pdns_control ${PDNS_CONFIG} cycle &>/dev/null eend $? } + +monitor() { + ebegin "Starting PowerDNS (${PDNS_INSTANCE}) in monitor mode" + /usr/sbin/pdns_server ${PDNS_CONFIG} --daemon=no --guardian=no --control-console --loglevel=9 + eend $? +} + +dump() { + ebegin "Dumping PowerDNS (${PDNS_INSTANCE}) variables" + /usr/bin/pdns_control ${PDNS_CONFIG} list + eend $? +} |