freebsd-ports/net/pdnsd/files/pdnsd.sh
Kevin Lo cd4226f92a - Update to version 1.1.1
- Better ${PREFIX} handling

PR: 24626
Submitted by: MAINTAINER
2001-01-28 07:51:34 +00:00

20 lines
274 B
Bash

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