Fixed monitor status bug
authorBrian Flowers <git-admn@bsflowers.net>
Sat, 5 Nov 2016 15:55:53 +0000 (11:55 -0400)
committerBrian Flowers <git-admn@bsflowers.net>
Sat, 5 Nov 2016 15:55:53 +0000 (11:55 -0400)
bin/bdsm.sh

index cadef1d..4959315 100755 (executable)
@@ -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"