diff --git a/mm-scripts.sh b/mm-scripts.sh index 1b8081e..eac6003 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -176,7 +176,7 @@ if [ ! -f /opt/mm.update.stop ]; then start | check) if [ -f /opt/mm.stop ] && [ "${action}" = "check" ]; then echo -e "${idsCL[Yellow]}The system is currently stopped ${idsCL[LightCyan]}(You must run \"mm start\" to start services again)${idsCL[Default]}" - exit 0 + exit 1 fi touch /opt/mm.stop MMSTART;; @@ -185,6 +185,10 @@ if [ ! -f /opt/mm.update.stop ]; then MMSTOP;; restart) + if [ -f /opt/mm.stop ] && [ "${action}" = "check" ]; then + echo -e "${idsCL[Yellow]}The system is currently stopped ${idsCL[LightCyan]}(You must run \"mm start\" to start services again)${idsCL[Default]}" + exit 1 + fi MMSTOP MMSTART;;