Update mm-scripts.sh

This commit is contained in:
2022-01-23 17:38:15 -06:00
parent a5d6018e9c
commit d6af7b2519

View File

@@ -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 &