aded restart

This commit is contained in:
neersighted 2012-02-28 00:34:04 -08:00
parent 5be6cadcf6
commit 052a743147
2 changed files with 21 additions and 7 deletions

View file

@ -1,10 +1,10 @@
#!/bin/sh
wait 5
if [ -f ../control.sh ]; then
../control.sh restart
elif [ -f ../bot.sh ]; then
../bot.sh restart
sleep 5
if [ -f ./control.sh ]; then
./control.sh restart
elif [ -f ./bot.sh ]; then
./bot.sh restart
else
../bot.py
./bot.py
fi
exit 0