mirror of https://github.com/nealey/firebot
Merge branch 'master' of /home/neale/public_html/repos/firebot
This commit is contained in:
commit
82c3a7fb06
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue