Added crappy runbot script.
This commit is contained in:
parent
9788f95565
commit
0f6df932ce
1 changed files with 12 additions and 0 deletions
12
runbot
Executable file
12
runbot
Executable 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 &
|
||||||
|
|
||||||
Loading…
Add table
Reference in a new issue