summaryrefslogtreecommitdiff
path: root/network/warvox/rc.warvox
diff options
context:
space:
mode:
authorMarco Bonetti <sid77@slackware.it>2010-05-12 23:32:53 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-12 23:32:53 +0200
commit9d3128ccaf04b40859fac62c05a00e900d22535b (patch)
treeabe99c904245be0efdf9fd8a56bf9137dee0f5c9 /network/warvox/rc.warvox
parent0d3981844e5bef98c119c1319c8a8967adefb996 (diff)
downloadslackbuilds-9d3128ccaf04b40859fac62c05a00e900d22535b.tar.gz
network/warvox: Added to 12.2 repository
Diffstat (limited to 'network/warvox/rc.warvox')
-rw-r--r--network/warvox/rc.warvox30
1 files changed, 30 insertions, 0 deletions
diff --git a/network/warvox/rc.warvox b/network/warvox/rc.warvox
new file mode 100644
index 0000000000..dd083c09bf
--- /dev/null
+++ b/network/warvox/rc.warvox
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+PORT=7777
+PIDFILE="/var/run/warvox/mongrel.pid"
+
+start() {
+ echo "Starting WarVOX: warvox -p ${PORT} -d "
+ warvox -p $PORT -d
+}
+
+stop() {
+ echo "Stopping WarVOX..."
+ kill $(cat $PIDFILE)
+}
+
+case "$1" in
+ start)
+ start
+ ;;
+ stop)
+ stop
+ ;;
+ restart)
+ stop
+ sleep 1
+ start
+ ;;
+ *)
+ echo "Usage: $0 (start|stop|restart)"
+esac