summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfram Schlich <wschlich@gentoo.org>2006-01-20 19:03:54 +0000
committerWolfram Schlich <wschlich@gentoo.org>2006-01-20 19:03:54 +0000
commite5f49750787ea0b88c00780483d70c49bca342fb (patch)
treeb5a9a60459fe927467d8f7a5c638c2f3383a341a /net-dns/pdns/files
parentBringing >=sci-misc/boinc-5.2.14 out of p.mask to receive wider testing. (diff)
downloadhistorical-e5f49750787ea0b88c00780483d70c49bca342fb.tar.gz
historical-e5f49750787ea0b88c00780483d70c49bca342fb.tar.bz2
historical-e5f49750787ea0b88c00780483d70c49bca342fb.zip
add monitor and dump opts to init script, make config files go into /etc/powerdns, add pdns user+group
Package-Manager: portage-2.1_pre3-r1
Diffstat (limited to 'net-dns/pdns/files')
-rw-r--r--net-dns/pdns/files/digest-pdns-2.9.19-r11
-rw-r--r--net-dns/pdns/files/pdns16
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 $?
+}