diff --git a/mm-scripts.sh b/mm-scripts.sh index ea84655..8cc91b6 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -472,7 +472,7 @@ MMSTOP(){ 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 "${MM_SERVICES[@]}"; do + for srvc in "${!MM_SERVICES[@]}"; do if [ "MM_SERVICE_PORTS[${srvc}]" != "" ]; then checkport=$(lsof -Pi :${MM_SERVICE_PORTS[${srvc}]} -sTCP:LISTEN -t) echo "$srvc - ${MM_SERVICE_PORTS[${srvc}]} - $checkport"