Update mm-scripts.sh
This commit is contained in:
1 parent
915e7a3c5c
commit
4ea5e54392
1 file changed
+4
-3
+4
-3
@@ -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,7 +91,8 @@ MMSTART(){
|
||||
"${VPN_START[@]}" &
|
||||
sleep 30s
|
||||
rm -f /opt/idssys/mediamanager/mm.stop*
|
||||
|
||||
[ $VERBOSE = true ] && DEBUGLOGSTOP
|
||||
exit 1
|
||||
fi
|
||||
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user