mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
30 lines
369 B
Bash
30 lines
369 B
Bash
#!/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
|