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