git://git.slightlycyberpunk.com
/
bdsm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b2ac27
)
Fixed monitor status bug
author
Brian Flowers
<git-admn@bsflowers.net>
Sat, 5 Nov 2016 15:55:53 +0000
(11:55 -0400)
committer
Brian Flowers
<git-admn@bsflowers.net>
Sat, 5 Nov 2016 15:55:53 +0000
(11:55 -0400)
bin/bdsm.sh
patch
|
blob
|
history
diff --git
a/bin/bdsm.sh
b/bin/bdsm.sh
index
cadef1d
..
4959315
100755
(executable)
--- 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"