diff options
| author | James E. Housley <jeh@FreeBSD.org> | 2000-12-14 03:27:37 +0000 |
|---|---|---|
| committer | James E. Housley <jeh@FreeBSD.org> | 2000-12-14 03:27:37 +0000 |
| commit | 95f68a924771e569695f6c8c6d1b5b493e550a10 (patch) | |
| tree | 58fc8e48821c1df3b0d5ea614745211598ada940 /dns/pdnsd/files/pdnsd.sh | |
| parent | cc5ec17b7db33c9104e353d847053a6f4bce1294 (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.sh | 19 |
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 |
