diff --git a/mm-scripts.sh b/mm-scripts.sh index 1de2860..b121a98 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -153,7 +153,8 @@ MMSTART(){ vpnuptime=$(expr `date +%s` - $(stat -c %Y ${MMFOLDER}/vpninfo)) #if [ ${vpnuptime} -ge 86400 ]; then - if [ ${vpnuptime} -ge 1 ]; then + if [ ${vpnuptime} -ge 300 ]; then + echo "$(date) - 24hr session limit reached, restarting vpn & services" >> $logfile echo -en "${idsCL[LightCyan]}24hr session limit reached, restarting vpn & services ." MMSTOP >/dev/null 2>&1 echo -en "."