summaryrefslogtreecommitdiffstats
path: root/net/pdnsd/files/pdnsd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'net/pdnsd/files/pdnsd.sh')
-rw-r--r--net/pdnsd/files/pdnsd.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/net/pdnsd/files/pdnsd.sh b/net/pdnsd/files/pdnsd.sh
new file mode 100644
index 0000000..4795f23
--- /dev/null
+++ b/net/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
OpenPOWER on IntegriCloud