Added crappy runbot script.

This commit is contained in:
Jonathan Harker 2010-05-31 01:17:24 +12:00
parent 9788f95565
commit 0f6df932ce

12
runbot Executable file
View file

@ -0,0 +1,12 @@
#!/bin/sh
PATH=/bin:/usr/bin
SERVERS=`ps -ef|grep 'lolbot.py'|grep -v grep|awk '{print $2}'`
if [ "$SERVERS" != "" ]; then
kill $SERVERS
fi
APP_PATH=/home/johnno/projects/lolbot
cd /tmp
nohup /usr/bin/python $APP_PATH/lolbot.py irc.freenode.net "#zomglol" lolbot > $APP_PATH/server.log 2> $APP_PATH/error.log &