From d625d5350cc76226294950f24c0fe5667493a075 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 24 Jul 2022 19:23:09 -0500 Subject: [PATCH] Update mm-scripts.sh --- mm-scripts.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mm-scripts.sh b/mm-scripts.sh index 1e4a77c..4ff6b26 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -315,6 +315,10 @@ MMSTATUS(){ } if [ ! -f /opt/mm.update.stop ]; then + if [ -f /opt/mm.stop ]; then + stoppedsince=`date +%s`-$(stat -c %Y /opt/mm.stop) + stopmsg="${idsCL[Yellow]}The system has currently been stopped for '${stoppedsince}'. ${idsCL[LightCyan]}(You must run \"mm start\" to start services again)${idsCL[Default]}" + fi case $action in start | check) if [ -f /opt/mm.stop ] && [ "${action}" = "check" ]; then