diff --git a/mm-scripts.sh b/mm-scripts.sh index 1591b57..0048762 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -73,7 +73,12 @@ MMSTART(){ } MMSTOP(){ - echo -e "${idsCL[LightCyan]}Stopping Services...${idsCL[Default]}" + if [ -f /opt/mm.stop ] && [ "${action}" = "check" ]; then + echo -e "${idsCL[Yellow]}The system is already stopped${idsCL[Default]}" + exit 0 + else + echo -e "${idsCL[LightCyan]}Stopping Services...${idsCL[Default]}" + fi echo for srvc in "${SERVICES_CHECK[@]}"; do /usr/sbin/service ${srvc} stop &