Update mm-scripts.sh

This commit is contained in:
2023-02-20 18:15:33 -06:00
parent 47f90755af
commit 915e7a3c5c

View File

@@ -73,14 +73,14 @@ MMSTART(){
"${VPN_START[@]}" &
sleep 30s
rm -f /opt/idssys/mediamanager/mm.stop*
[ $VERBOSE = true ] && DEBUGLOGSTOP
exit 1
elif [ -f /opt/idssys/mediamanager/mm.vpn.fail2 ]; then
echo "$(date) - VPN Failure #3 - Shutting down Media Management systems" >> $logfile
[ "${EMAIL_NOTICE}" != "" ] && echo "Final Failure, shutting down system" | mail -s "VPN Failure" ${EMAIL_NOTICE}
MMSTOP
[ $VERBOSE = true ] && DEBUGLOGSTOP
exit 1
else
echo -e "${idsCL[Red]} failed, restarting system${idsCL[Default]}"
echo "$(date) - VPN Failure #1 - restarting system" >> $logfile
@@ -91,8 +91,7 @@ MMSTART(){
"${VPN_START[@]}" &
sleep 30s
rm -f /opt/idssys/mediamanager/mm.stop*
[ $VERBOSE = true ] && DEBUGLOGSTOP
exit 1
fi
else