1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-30 21:49:25 +00:00
freebsd-ports/net/pdnsd/files/pdnsd.sh

20 lines
274 B
Bash
Raw Normal View History

#!/bin/sh
case $1 in
start)
if [ -x %%PREFIX%%/sbin/pdnsd -a -f %%PREFIX%%/etc/pdnsd.conf ]; then
%%PREFIX%%/sbin/pdnsd -d
echo -n ' pdnsd'
fi
;;
stop)
killall pdnsd && echo -n ' pdnsd'
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2
exit 64
;;
esac
exit 0