Update mm-scripts.sh
This commit is contained in:
@@ -53,7 +53,7 @@ MMSTART(){
|
|||||||
MMSTOP
|
MMSTOP
|
||||||
sleep 5m
|
sleep 5m
|
||||||
"${VPN_START[@]}" &
|
"${VPN_START[@]}" &
|
||||||
sleep 1m
|
sleep 30s
|
||||||
rm -f /opt/mm.stop
|
rm -f /opt/mm.stop
|
||||||
exit 1
|
exit 1
|
||||||
elif [ -f /opt/mm.vpn.fail2 ]; then
|
elif [ -f /opt/mm.vpn.fail2 ]; then
|
||||||
@@ -67,9 +67,9 @@ MMSTART(){
|
|||||||
[ $SENDNOTICE = true ] && echo "1st Failure, will try and restart the VPN" | mail -s "VPN Failure" 9208839613@mms.att.net
|
[ $SENDNOTICE = true ] && echo "1st Failure, will try and restart the VPN" | mail -s "VPN Failure" 9208839613@mms.att.net
|
||||||
touch /opt/mm.vpn.fail
|
touch /opt/mm.vpn.fail
|
||||||
MMSTOP
|
MMSTOP
|
||||||
sleep 30s
|
|
||||||
"${VPN_START[@]}" &
|
|
||||||
sleep 1m
|
sleep 1m
|
||||||
|
"${VPN_START[@]}" &
|
||||||
|
sleep 30s
|
||||||
rm -f /opt/mm.stop
|
rm -f /opt/mm.stop
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user