From 0f6df932ceba94e760a06a268bc043cd78448513 Mon Sep 17 00:00:00 2001 From: Jonathan Harker Date: Mon, 31 May 2010 01:17:24 +1200 Subject: [PATCH] Added crappy runbot script. --- runbot | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 runbot diff --git a/runbot b/runbot new file mode 100755 index 0000000..acbeb78 --- /dev/null +++ b/runbot @@ -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 & +