mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-31 21:57:12 +00:00
95f68a9247
pdnsd is a proxy dns server with permanent caching PR: 22963 Submitted by: Roman Shterenzon <roman@xpert.com>
20 lines
271 B
Bash
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
|