runbot 318 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 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 &