1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/dns/pdnsd/files/pdnsd.sh
James E. Housley 95f68a9247 New Port: net/pdns
pdnsd is a proxy dns server with permanent caching

PR:		22963
Submitted by:	Roman Shterenzon <roman@xpert.com>
2000-12-14 03:27:37 +00:00

20 lines
271 B
Bash

#!/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