Update mm-scripts.sh

This commit is contained in:
2023-04-21 12:13:50 -05:00
parent 78d9abeba3
commit 03f6879f48

View File

@@ -449,6 +449,7 @@ MMSTOP(){
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)
echo "$srvc - ${MM_SERVICE_PORTS[${srvc}]} - $checkport"
until [ "${checkport}" == "" ]; do
sleep 1s
checkport=$(lsof -Pi :${MM_SERVICE_PORTS[${srvc}]} -sTCP:LISTEN -t)