From db86f524c7dce047e95f56793f62bb9ed282141b Mon Sep 17 00:00:00 2001 From: Brian Flowers Date: Sat, 5 Nov 2016 11:55:53 -0400 Subject: [PATCH] Fixed monitor status bug --- bin/bdsm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 1.8.3.1