From 5faa2d4f6986b6c7770f9a683e269d322b07f418 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 26 Mar 2023 20:30:06 -0500 Subject: [PATCH] Update mm-scripts.sh --- mm-scripts.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mm-scripts.sh b/mm-scripts.sh index 043e086..8d92859 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -323,7 +323,7 @@ PersistentKeepalive = 25" >> /etc/wireguard/${VPN_INTERFACE}.conf echo -en "${idsCL[LightCyan]}${msg}${spc} ${idsCL[White]}: ${idsCL[Default]}" for srvc in "${SERVICES_CHECK[@]}"; do - [ "$(systemctl is-active ${srvc})" != "active" ] && /bin/systemctl start ${srvc} + [ "$(systemctl is-active ${srvc})" != "active" ] && /bin/systemctl restart ${srvc} if [ "${MM_SERVICE_PORTS[${srvc}]}" != "" ]; then checkport=$(lsof -Pi :${MM_SERVICE_PORTS[${srvc}]} -sTCP:LISTEN -t) @@ -369,6 +369,7 @@ PersistentKeepalive = 25" >> /etc/wireguard/${VPN_INTERFACE}.conf elif [ "${tryupdate}" == "true" ]; then echo -e "${idsCL[Green]}Done${idsCL[Default]}" fi + [ "${checkport}" != "" ] && rm -f ${MMFOLDER}/mm.${srvc}.starting fi done