summaryrefslogtreecommitdiffstats
path: root/main/nsd/nsdc
diff options
context:
space:
mode:
authorMatt Smith <mcs@darkregion.net>2011-03-29 23:40:36 -0500
committerMatt Smith <mcs@darkregion.net>2011-03-29 23:40:36 -0500
commit4346c9975804621d2e276ef1a12c0695dce71eb1 (patch)
tree2a5e5b38423947a52d303068a2344d2bf6c65d09 /main/nsd/nsdc
parentf3e054e83191c6bddd83f639c8826e829b790e91 (diff)
downloadaports-4346c9975804621d2e276ef1a12c0695dce71eb1.tar.bz2
aports-4346c9975804621d2e276ef1a12c0695dce71eb1.tar.xz
main/nsd: moved from testing
Diffstat (limited to 'main/nsd/nsdc')
-rw-r--r--main/nsd/nsdc30
1 files changed, 30 insertions, 0 deletions
diff --git a/main/nsd/nsdc b/main/nsd/nsdc
new file mode 100644
index 000000000..ff4cb5c6b
--- /dev/null
+++ b/main/nsd/nsdc
@@ -0,0 +1,30 @@
+#!/bin/sh
+#
+# nsdc replacement script by Matt Smith <msmith@alpinelinux.org>
+#
+
+usage() {
+ echo "Usage: `basename $0` {start|stop|reload|rebuild|restart|"
+ echo " running|update|notify|patch}"
+ echo "commands:"
+ echo " start Start nsd server."
+ echo " stop Stop nsd server."
+ echo " reload Nsd server reloads database file."
+ echo " rebuild Compile database file from zone files."
+ echo " restart Stop the nsd server and start it again."
+ echo " running Prints message and exit nonzero if server not running."
+ echo " update Try to update all slave zones hosted on this server."
+ echo " notify Send notify messages to all secondary servers."
+ echo " patch Merge zone transfer changes back to zone files."
+}
+
+if [ $# -eq 0 ]; then
+ usage
+else
+ case "$1" in
+ "-h"|"--help")
+ usage;;
+ *)
+ /etc/init.d/nsd $*
+ esac
+fi