aboutsummaryrefslogtreecommitdiff
path: root/dns/powerdns-devel/files/pdns.sh.sample
diff options
context:
space:
mode:
Diffstat (limited to 'dns/powerdns-devel/files/pdns.sh.sample')
-rw-r--r--dns/powerdns-devel/files/pdns.sh.sample31
1 files changed, 0 insertions, 31 deletions
diff --git a/dns/powerdns-devel/files/pdns.sh.sample b/dns/powerdns-devel/files/pdns.sh.sample
deleted file mode 100644
index b5899e363ee1..000000000000
--- a/dns/powerdns-devel/files/pdns.sh.sample
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/sh
-
-rc_file=${0##*/}
-
-PREFIX=%%PREFIX%%
-
-pdns=${PREFIX}/sbin/pdns_server
-pdnscontrol=${PREFIX}/bin/pdns_control
-pdnsrecursor=${PREFIX}/sbin/pdns_recursor
-recursorpid=/var/run/pdns_recursor.pid
-
-# start
-if [ "x$1" = "x" -o "x$1" = "xstart" ]; then
- if [ -f $pdns ]; then
- echo -n ' PowerDNS'
- if [ -f $pdnsrecursor ]; then
- rm $recursorpid >/dev/null 2>&1
- $pdnsrecursor >/dev/null 2>&1
- fi
- $pdns
- fi
-
-# stop
-elif [ "x$1" = "xstop" ]; then
- if [ -f $pdnscontrol ]; then
- $pdnscontrol quit
- fi
- if [ -r $recursorpid ]; then
- kill `cat $recursorpid` >/dev/null
- fi
-fi