Update dsmon.sh

This commit is contained in:
2024-01-06 23:50:42 -06:00
parent 5d987c4d2f
commit 5924dc5091

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.*.running 2>/dev/null | wc -l) -lt 2 ]; do tmp=tmp; done
until [ $(ls /tmp/dscheck.*.running 2>/dev/null | wc -l) -lt 6 ]; do tmp=tmp; done
RUN_CHECK ${hostname} > /tmp/dscheck.${hostname}.results 2>/dev/null &
done
echo -e "${idsCL[LightGreen]}Done${idsCL[Default]}"