From bcbb096d7d9feba52527e141b4a728a6d1a7c8ab Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Thu, 4 Oct 2007 16:21:34 -0600 Subject: [PATCH] Make health script suck less --- health.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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