diff options
author | Marco Bonetti <sid77@slackware.it> | 2010-05-12 23:32:53 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-12 23:32:53 +0200 |
commit | 9d3128ccaf04b40859fac62c05a00e900d22535b (patch) | |
tree | abe99c904245be0efdf9fd8a56bf9137dee0f5c9 /network/warvox/rc.warvox | |
parent | 0d3981844e5bef98c119c1319c8a8967adefb996 (diff) | |
download | slackbuilds-9d3128ccaf04b40859fac62c05a00e900d22535b.tar.gz |
network/warvox: Added to 12.2 repository
Diffstat (limited to 'network/warvox/rc.warvox')
-rw-r--r-- | network/warvox/rc.warvox | 30 |
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 |