summaryrefslogtreecommitdiff
path: root/net/mars_nwe/files/nwserv.sh
diff options
context:
space:
mode:
Diffstat (limited to 'net/mars_nwe/files/nwserv.sh')
-rw-r--r--net/mars_nwe/files/nwserv.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/net/mars_nwe/files/nwserv.sh b/net/mars_nwe/files/nwserv.sh
new file mode 100644
index 000000000000..67a7a4bf9b84
--- /dev/null
+++ b/net/mars_nwe/files/nwserv.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+PREFIX=/usr/local
+
+PROG=${PREFIX}/sbin/nwserv
+
+if [ x$1 = xstart ]; then
+ (sleep 120;${PROG}) &
+elif [ "x$1" = "xstop" ]; then
+ ${PROG} -k
+fi