diff --git a/health.sh b/health.sh index dccf8a8..4337c22 100755 --- a/health.sh +++ b/health.sh @@ -2,6 +2,6 @@ ## Restart the bot if it's not running # Gallium assumes everything's in the cwd -cd /home/neale/src/firebot +cd $(basename $0) -kill -0 `cat gallium.pid` 2>/dev/null || ./gallium.py +kill -0 $(cat gallium.pid) 2>/dev/null || ./gallium.py