diff options
Diffstat (limited to 'dns/pdnsd/files/pdnsd.sh')
-rw-r--r-- | dns/pdnsd/files/pdnsd.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/dns/pdnsd/files/pdnsd.sh b/dns/pdnsd/files/pdnsd.sh new file mode 100644 index 000000000000..4795f23879ac --- /dev/null +++ b/dns/pdnsd/files/pdnsd.sh @@ -0,0 +1,19 @@ +#!/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 |