From 20d43c5d9a419b4ca44a6236e523bd642a02048f Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 22 Apr 2023 20:55:43 -0500 Subject: [PATCH] Update mm-scripts.sh --- mm-scripts.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mm-scripts.sh b/mm-scripts.sh index 07d8f5b..80e8ae3 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -463,10 +463,12 @@ MMSTOP(){ 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 - if [[ ${srvc} != *"vpn"* ]] && [[ ${srvc} != *"wireguard"* ]]; then + if [[ ${srvc} != *"qbittorrent"* ]] && [[ ${srvc} != *"vpn"* ]] && [[ ${srvc} != *"wireguard"* ]]; then /bin/systemctl stop ${srvc} >/dev/null 2>&1 & fi done + sleep 2s + /bin/systemctl stop qbittorrent echo -e "${idsCL[Green]}Done${idsCL[Default]}" msg="Waiting for Services to stop"