diff --git a/mm-scripts.sh b/mm-scripts.sh index 0e8f1c4..ce0353e 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -115,8 +115,8 @@ PersistentKeepalive = 25" >> /etc/wireguard/${VPN_INTERFACE}.conf rm -f ${MMFOLDER}/mm.vpn.fail MMSTOP sleep 5m - "${VPN_START[@]}" >/dev/null 2>&1 & - sleep 30s + "${VPN_START[@]}" >/dev/null 2>&1 + sleep 10s rm -f ${MMFOLDER}/mm.stop* [ $VERBOSE = true ] && DEBUGLOGSTOP exit 1 @@ -133,8 +133,8 @@ PersistentKeepalive = 25" >> /etc/wireguard/${VPN_INTERFACE}.conf touch ${MMFOLDER}/mm.vpn.fail MMSTOP sleep 30s - "${VPN_START[@]}" >/dev/null 2>&1 & - sleep 30s + "${VPN_START[@]}" >/dev/null 2>&1 + sleep 10s rm -f ${MMFOLDER}/mm.stop* [ $VERBOSE = true ] && DEBUGLOGSTOP exit 1 @@ -177,9 +177,9 @@ PersistentKeepalive = 25" >> /etc/wireguard/${VPN_INTERFACE}.conf SENDNOTICE "Network Failure" "Default route failure, will try and restart the VPN" 1 touch ${MMFOLDER}/mm.vpn.fail MMSTOP - sleep 2m - "${VPN_START[@]}" >/dev/null 2>&1 & - sleep 1m + sleep 30s + "${VPN_START[@]}" >/dev/null 2>&1 + sleep 10s rm -f ${MMFOLDER}/mm.stop* [ $VERBOSE = true ] && DEBUGLOGSTOP exit 1