aboutsummaryrefslogtreecommitdiffstats
path: root/dns/pdnsd/files/pdnsd.sh
diff options
context:
space:
mode:
authorJames E. Housley <jeh@FreeBSD.org>2000-12-14 03:27:37 +0000
committerJames E. Housley <jeh@FreeBSD.org>2000-12-14 03:27:37 +0000
commit95f68a924771e569695f6c8c6d1b5b493e550a10 (patch)
tree58fc8e48821c1df3b0d5ea614745211598ada940 /dns/pdnsd/files/pdnsd.sh
parentcc5ec17b7db33c9104e353d847053a6f4bce1294 (diff)
New Port: net/pdns
pdnsd is a proxy dns server with permanent caching PR: 22963 Submitted by: Roman Shterenzon <roman@xpert.com>
Diffstat (limited to 'dns/pdnsd/files/pdnsd.sh')
-rw-r--r--dns/pdnsd/files/pdnsd.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/dns/pdnsd/files/pdnsd.sh b/dns/pdnsd/files/pdnsd.sh
new file mode 100644
index 000000000000..4795f23879ac
--- /dev/null
+++ b/dns/pdnsd/files/pdnsd.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+case $1 in
+start)
+ if [ -x /usr/local/sbin/pdnsd -a -f /usr/local/etc/pdnsd.conf ]; then
+ /usr/local/sbin/pdnsd -d
+ echo ' pdnsd'
+ fi
+ ;;
+stop)
+ killall pdnsd && echo -n ' pdnsd'
+ ;;
+*)
+ echo "Usage: `basename $0` {start|stop}" >&2
+ exit 64
+ ;;
+esac
+
+exit 0