mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
cd4226f92a
- Better ${PREFIX} handling PR: 24626 Submitted by: MAINTAINER
20 lines
274 B
Bash
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
|