diff --git a/mm-scripts.sh b/mm-scripts.sh index 15c57ee..55f90f3 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -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