summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-dns/pdns/files/pdns')
-rw-r--r--net-dns/pdns/files/pdns16
1 files changed, 14 insertions, 2 deletions
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 $?
+}