From ce99453c161f4fb2736b5707d6dad50877935e00 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 23 Mar 2023 22:07:22 -0500 Subject: [PATCH] update --- mm-scripts.sh | 5 ++++- run.sh | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/mm-scripts.sh b/mm-scripts.sh index 052ef73..1f109ba 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -388,7 +388,10 @@ MMSTOP(){ echo echo -e "${idsCL[Red]}All services have been stopped${idsCL[Default]}" echo - + getMMbash=$(pgrep -f '/mm') + for i in $getMMbash; do + /bin/kill $i + done #exit 0 } diff --git a/run.sh b/run.sh index 03df936..bc1e395 100755 --- a/run.sh +++ b/run.sh @@ -70,7 +70,7 @@ else if [ "${1}" == "clear" ]; then rm -f ${MMFOLDER}/mm.* fi - if [ -f ${MMFOLDER}/mm.stop.checking ] && [ "${1}" != "status" ]; then + if [ -f ${MMFOLDER}/mm.stop.checking ] && [ "${1}" != "status" ] && [ "${1}" != "stop" ]; then #fd=$(expr $(date +%s) - $(stat -L --format %Y ${MMFOLDER}/mm.stop.checking)) if [ $(expr $(date +%s) - $(stat -L --format %Y ${MMFOLDER}/mm.stop.checking)) -gt 900 ]; then rm -f ${MMFOLDER}/mm.stop*