aboutsummaryrefslogtreecommitdiff
path: root/dns/mydns-ng/files/mydns.sh
diff options
context:
space:
mode:
authorAnders Nordby <anders@FreeBSD.org>2002-08-05 23:35:09 +0000
committerAnders Nordby <anders@FreeBSD.org>2002-08-05 23:35:09 +0000
commit58143feaad2a780814ff3b726514885217b17146 (patch)
tree15db8da0216076886d78bee6c0b4a1f2d8473834 /dns/mydns-ng/files/mydns.sh
parent394cf0d6b0cd52626d7f4707d148103bf1796a7e (diff)
Notes
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