Update mm-scripts.sh
This commit is contained in:
@@ -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 &
|
||||
|
||||
Reference in New Issue
Block a user