diff --git a/mm-scripts.sh b/mm-scripts.sh index c41edcc..be96661 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -53,7 +53,7 @@ MMSTART(){ MMSTOP sleep 5m "${VPN_START[@]}" & - sleep 1m + sleep 30s rm -f /opt/mm.stop exit 1 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 touch /opt/mm.vpn.fail MMSTOP - sleep 30s - "${VPN_START[@]}" & sleep 1m + "${VPN_START[@]}" & + sleep 30s rm -f /opt/mm.stop exit 1 fi