From b0052807ad213e33af0ece19c82e6de47df63d4b Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 13 Jan 2023 20:14:38 -0600 Subject: [PATCH] Update mm-scripts.sh --- mm-scripts.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mm-scripts.sh b/mm-scripts.sh index 4dcb75f..0af4505 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -367,6 +367,9 @@ if [ ! -f /opt/idssys/mediamanager/mm.update.stop ]; then checkstopped=`expr $(date +%s) - $(stat -c %Y /opt/idssys/mediamanager/mm.stop.checking)` if [ $checkstopped -gt 1800 ]; then rm -f /opt/idssys/mediamanager/mm.stop* + + echo "$(date) - Bash script stuck in stop mode after doing a check" >> $logfile + [ "${EMAIL_NOTICE}" != "" ] && echo "Bash script stuck in stop mode after doing a check" | mail -s "MM Script Error" ${EMAIL_NOTICE} else exit 1 fi