Update mm-scripts.sh

This commit is contained in:
2022-07-26 18:29:34 -05:00
parent 9725a8f660
commit 0d4788cbea

View File

@@ -55,13 +55,13 @@ MMSTART(){
"${VPN_START[@]}" & "${VPN_START[@]}" &
sleep 30s sleep 30s
rm -f /opt/mm.stop rm -f /opt/mm.stop
[ $VERBOSE = true ] && debuglogstop() [ $VERBOSE = true ] && debuglogstop
exit 1 exit 1
elif [ -f /opt/mm.vpn.fail2 ]; then elif [ -f /opt/mm.vpn.fail2 ]; then
echo "$(date) - VPN Failure #3 - Shutting down Media Management systems" >> $logfile echo "$(date) - VPN Failure #3 - Shutting down Media Management systems" >> $logfile
[ $SENDNOTICE = true ] && echo "Final Failure, shutting down system" | mail -s "VPN Failure" 9208839613@mms.att.net [ $SENDNOTICE = true ] && echo "Final Failure, shutting down system" | mail -s "VPN Failure" 9208839613@mms.att.net
MMSTOP MMSTOP
[ $VERBOSE = true ] && debuglogstop() [ $VERBOSE = true ] && debuglogstop
exit 1 exit 1
else else
echo -e "${idsCL[Red]} failed, restarting system${idsCL[Default]}" echo -e "${idsCL[Red]} failed, restarting system${idsCL[Default]}"
@@ -73,7 +73,7 @@ MMSTART(){
"${VPN_START[@]}" & "${VPN_START[@]}" &
sleep 30s sleep 30s
rm -f /opt/mm.stop rm -f /opt/mm.stop
[ $VERBOSE = true ] && debuglogstop() [ $VERBOSE = true ] && debuglogstop
exit 1 exit 1
fi fi
@@ -106,7 +106,7 @@ MMSTART(){
"${VPN_START[@]}" & "${VPN_START[@]}" &
sleep 1m sleep 1m
rm -f /opt/mm.stop rm -f /opt/mm.stop
[ $VERBOSE = true ] && debuglogstop() [ $VERBOSE = true ] && debuglogstop
exit 1 exit 1
fi fi
((cc=${cc}+1)) ((cc=${cc}+1))
@@ -134,7 +134,7 @@ MMSTART(){
"${VPN_START[@]}" & "${VPN_START[@]}" &
sleep 1m sleep 1m
rm -f /opt/mm.stop rm -f /opt/mm.stop
[ $VERBOSE = true ] && debuglogstop() [ $VERBOSE = true ] && debuglogstop
exit 1 exit 1
fi fi
((cc=${cc}+1)) ((cc=${cc}+1))
@@ -154,7 +154,7 @@ MMSTART(){
"${VPN_START[@]}" & "${VPN_START[@]}" &
sleep 1m sleep 1m
rm -f /opt/mm.stop rm -f /opt/mm.stop
[ $VERBOSE = true ] && debuglogstop() [ $VERBOSE = true ] && debuglogstop
exit 1 exit 1
fi fi
@@ -183,7 +183,7 @@ MMSTART(){
fi fi
echo echo
[ $VERBOSE = true ] && debuglogstop() [ $VERBOSE = true ] && debuglogstop
#exit 0 #exit 0
} }