From da3325540c7225a752fc6cb98c43448533291dd1 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 7 Jun 2022 21:59:14 -0500 Subject: [PATCH] Update mm-scripts.sh --- mm-scripts.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mm-scripts.sh b/mm-scripts.sh index b0979ae..360e416 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -155,11 +155,13 @@ MMSTART(){ echo -e "${idsCL[Green]} done${idsCL[Default]}" echo if [ "${1}" == "start" ]; then - echo -e "${idsCL[LightCyan]}It may take a couple of minutes before all systems fully start${idsCL[Default]}" + echo -e "${idsCL[LightCyan]}It may take a couple of minutes before all services fully start${idsCL[Default]}" echo fi if [ "${1}" == "start" ] || [ -f /opt/mm.vpn.fail* ]; then - echo "$(date) - Media Management systems started" >> $logfile + echo "$(date) - Media services have been restarted" >> $logfile + if [ "${1}" != "start" ] && [ -f /opt/mm.vpn.fail* ]; then + [ $SENDNOTICE = true ] && echo "Media services have been restarted" | mail -s "Services Restored" 9208839613@mms.att.net fi rm -f /opt/mm.stop rm -f /opt/mm.vpn.fail* @@ -314,7 +316,7 @@ if [ ! -f /opt/mm.update.stop ]; then start | check) if [ -f /opt/mm.stop ] && [ "${action}" = "check" ]; then echo -e "${idsCL[Yellow]}The system is currently stopped ${idsCL[LightCyan]}(You must run \"mm start\" to start services again)${idsCL[Default]}" - [ $VERBOSE = true ] && echo "$(date) - Not checking, system has been stopped" >> $logfile + # [ $VERBOSE = true ] && echo "$(date) - Not checking, system has been stopped" >> $logfile echo exit 1 fi