Merge branch 'master' of /home/neale/public_html/repos/firebot

This commit is contained in:
Neale Pickett 2007-10-04 17:04:41 -06:00
commit 82c3a7fb06
1 changed files with 6 additions and 3 deletions

View File

@ -1,7 +1,10 @@
#! /bin/sh
## Restart the bot if it's not running
# Gallium assumes everything's in the cwd
cd /home/neale/src/firebot
# You can specify which bot to run as a command line option;
# default gallium
bot=${1:-gallium}
kill -0 `cat gallium.pid` 2>/dev/null || ./gallium.py
cd $(dirname $0)
kill -0 $(cat $bot.pid) 2>/dev/null || ./$bot.py