summaryrefslogtreecommitdiff
path: root/net-dns/pdns/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-31 15:47:53 +0000
committerV3n3RiX <venerix@redcorelinux.org>2017-10-31 15:47:53 +0000
commitd950fa39dbe16d164ed0cb8e3036fd5d0d896a4c (patch)
tree04f92d5d1070a7aedb970ce4539dc6d60253c4df /net-dns/pdns/files
parentbd7908c6630f38067350d396ac5d18c3cc2434a0 (diff)
gentoo resync : 31.10.2017
Diffstat (limited to 'net-dns/pdns/files')
-rw-r--r--net-dns/pdns/files/pdns61
1 files changed, 0 insertions, 61 deletions
diff --git a/net-dns/pdns/files/pdns b/net-dns/pdns/files/pdns
deleted file mode 100644
index c16037913112..000000000000
--- a/net-dns/pdns/files/pdns
+++ /dev/null
@@ -1,61 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-extra_commands="monitor"
-extra_started_commands="reload dump"
-
-PDNS_INSTANCE="${SVCNAME#pdns[.-]}"
-PDNS_CONFIG=""
-
-if [ -n "${PDNS_INSTANCE}" ] && [ "${PDNS_INSTANCE}" != "pdns" ]
-then
- PDNS_CONFIG="--config-name=${PDNS_INSTANCE}"
-else
- PDNS_INSTANCE="default"
-fi
-
-depend() {
- need net
- use mysql postgresql
-}
-
-start() {
- ebegin "Starting PowerDNS (${PDNS_INSTANCE})"
- /usr/sbin/pdns_server \
- ${PDNS_CONFIG} \
- --daemon=yes \
- --guardian=yes
- eend $?
-}
-
-stop() {
- ebegin "Stopping PowerDNS (${PDNS_INSTANCE})"
- /usr/bin/pdns_control ${PDNS_CONFIG} quit >/dev/null 2>&1
- eend $?
-}
-
-reload() {
- ebegin "Reloading PowerDNS (${PDNS_INSTANCE})"
- /usr/bin/pdns_control ${PDNS_CONFIG} cycle >/dev/null 2>&1
- eend $?
-}
-
-dump() {
- ebegin "Dumping PowerDNS (${PDNS_INSTANCE}) variables"
- /usr/bin/pdns_control ${PDNS_CONFIG} list
- eend $?
-}
-
-monitor() {
- ebegin "Starting PowerDNS (${PDNS_INSTANCE}) in monitor mode"
- /usr/sbin/pdns_server \
- ${PDNS_CONFIG} \
- --daemon=no \
- --guardian=no \
- --control-console=yes \
- --loglevel=9 \
- --log-dns-details=yes \
- --query-logging=yes
- eend $?
-}