aboutsummaryrefslogtreecommitdiff
path: root/dns/mydns-ng/files/mydns.sh
diff options
context:
space:
mode:
Diffstat (limited to 'dns/mydns-ng/files/mydns.sh')
-rw-r--r--dns/mydns-ng/files/mydns.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/dns/mydns-ng/files/mydns.sh b/dns/mydns-ng/files/mydns.sh
new file mode 100644
index 000000000000..493a4356d676
--- /dev/null
+++ b/dns/mydns-ng/files/mydns.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+case "$1" in
+ start)
+ %%%PREFIX%%%/sbin/mydns -b
+ ;;
+ stop)
+ kill `cat /var/run/mydns.pid`
+ ;;
+ *)
+ echo ""
+ echo "Usage: `basename $0` { start | stop }"
+ echo ""
+ exit 64
+ ;;
+esac