Update dsmon.sh

This commit is contained in:
2024-01-06 23:46:17 -06:00
parent bc9616be85
commit 5d987c4d2f

View File

@@ -136,7 +136,7 @@ CHECK(){
echo -en "${idsCL[LightCyan]}${MSG}${spc}: "
#for hostid in "${!host_ip[@]}"; do
for hostname in "${hostnames_sort[@]}"; do
until [ $(ls /tmp/dscheck.${hostname}.running 2>/dev/null | wc -l) -lt 2 ]; do tmp=tmp; done
until [ $(ls /tmp/dscheck.*.running 2>/dev/null | wc -l) -lt 2 ]; do tmp=tmp; done
RUN_CHECK ${hostname} > /tmp/dscheck.${hostname}.results 2>/dev/null &
done
echo -e "${idsCL[LightGreen]}Done${idsCL[Default]}"