From: Brian Flowers Date: Sat, 5 Nov 2016 15:55:53 +0000 (-0400) Subject: Fixed monitor status bug X-Git-Url: http://git.slightlycyberpunk.com%2C%20git.slightlycyberpunk.com/git/?a=commitdiff_plain;h=db86f524c7dce047e95f56793f62bb9ed282141b;p=bdsm.git Fixed monitor status bug --- diff --git a/bin/bdsm.sh b/bin/bdsm.sh index cadef1d..4959315 100755 --- a/bin/bdsm.sh +++ b/bin/bdsm.sh @@ -289,7 +289,7 @@ status() done 10< <(echo $functions | tr ';' '\n' | sed 's/[(),]/ /g') pid=`cat /home/bdsm/pids/$host.in 2>/dev/null` - if [ ! -f $config_path/pids/$host.in ]; then + if [ ! -f /home/bdsm/pids/$host.in ]; then echo "$type:$host:MONITOR|DOWN" elif [ `ps -p $pid | wc -l` -ge 2 ]; then echo "$type:$host:MONITOR|UP"