Update mm-scripts.sh

This commit is contained in:
2023-03-26 21:26:29 -05:00
parent 9ad39433c5
commit 0a0cea5fe1

View File

@@ -428,14 +428,16 @@ MMSTOP(){
done
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
msg="Waiting for Services to fully stop"
msg="Waiting for Services to stop"
c=0; spc=''; spc1=$((${cw_spc}-${#msg}))
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
echo -en "${idsCL[LightCyan]}${msg}${spc} ${idsCL[White]}: ${idsCL[Default]}"
for srvc in "${SERVICES_CHECK[@]}"; do
checkport=$(lsof -Pi :${MM_SERVICE_PORTS[${srvc}]} -sTCP:LISTEN -t)
until [ "${checkport}" != "" ]; do
sleep 1s
echo "$checkport - ${MM_SERVICE_PORTS[${srvc}]}"
sleep 5s
checkport=$(lsof -Pi :${MM_SERVICE_PORTS[${srvc}]} -sTCP:LISTEN -t)
done
done