adding restart command

This commit is contained in:
neersighted 2012-02-28 00:08:21 -08:00
parent 581db0b9d2
commit 5be6cadcf6
1 changed files with 10 additions and 0 deletions

10
lib/restart.sh Executable file
View File

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