Update mm-scripts.sh

This commit is contained in:
2023-03-25 10:39:11 -05:00
parent d54980644f
commit b81d3df75c

View File

@@ -377,9 +377,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[Default]}"
echo
#for srvc in "${SERVICES_CHECK[@]}"; do
for srvc in "${!MM_SERVICES[@]}"; do
if [[ ${srvc} != *"vpn"* ]] && [[ ${srvc} != *"wireguard"* ]]; then
/bin/systemctl stop ${srvc} &
@@ -387,9 +385,7 @@ MMSTOP(){
done
checked=false
until [ "${checked}" = "" ]; do
for srvc in "${SERVICES_CHECK[@]}"; do
echo "$srvc : ${MM_SERVICE_PORTS[${srvc}]}"
if ! lsof -Pi :${MM_SERVICE_PORTS[${srvc}]} -sTCP:LISTEN -t >/dev/null; then
checked=""
else