Update mm-scripts.sh

This commit is contained in:
2023-03-22 21:26:23 -05:00
parent 39b04f3e0d
commit b27ece7402

View File

@@ -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