From 49cc4133e5bff443e56585261a5411b2a33a95ea Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 31 Jan 2022 21:47:08 -0600 Subject: [PATCH] Update mm-scripts.sh --- mm-scripts.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/mm-scripts.sh b/mm-scripts.sh index bb4e6a6..aa53316 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -76,6 +76,19 @@ MMSTART(){ } MMSTOP(){ + if [ "${action}" = "start" ]; then + mmsv='Starting' + echo -e "${idsCL[Green]}Starting System...${idsCL[Default]}" + elif [ "${action}" = "stop" ]; then + mmsv='Stopping' + if [ -f /opt/mm.stop ]; then + echo -e "${idsCL[Yellow]}The system is already stopped, will verify anyway,..${idsCL[Default]}" + else + echo -e "${idsCL[Green]}Stopping System...${idsCL[Default]}" + fi + echo + fi + if [ -f /opt/mm.stop ]; then echo -e "${idsCL[Yellow]}The system is already stopped, will verify anyway${idsCL[Default]}" echo