summaryrefslogtreecommitdiffstats
path: root/network/open-isns/rc.isnsd
diff options
context:
space:
mode:
Diffstat (limited to 'network/open-isns/rc.isnsd')
-rw-r--r--network/open-isns/rc.isnsd24
1 files changed, 24 insertions, 0 deletions
diff --git a/network/open-isns/rc.isnsd b/network/open-isns/rc.isnsd
new file mode 100644
index 0000000000..7067f16f48
--- /dev/null
+++ b/network/open-isns/rc.isnsd
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+# Read alternative ARGS line from /etc/default/isnsd.
+test -f /etc/default/isnsd && source /etc/default/isnsd
+
+case "$1" in
+ start)
+ echo "starting isnsd"
+ /usr/sbin/isnsd $ARGS
+ ;;
+ stop)
+ echo "stopping isnsd"
+ pkill -F /var/run/isnsd.pid
+ ;;
+ status)
+ echo "$(pgrep -c -f /usr/sbin/isnsd) isnsd process(es) running"
+ ;;
+ restart)
+ $0 stop; sleep 2; $0 start
+ ;;
+ *)
+ echo "usage: $0 {start|stop|status|reload|restart}"
+ ;;
+esac