24hr session restart
This commit is contained in:
@@ -152,8 +152,7 @@ MMSTART(){
|
||||
fi
|
||||
|
||||
vpnuptime=$(expr `date +%s` - $(stat -c %Y ${MMFOLDER}/vpninfo))
|
||||
#if [ ${vpnuptime} -ge 86400 ]; then
|
||||
if [ ${vpnuptime} -ge 300 ]; then
|
||||
if [ ${vpnuptime} -ge 86400 ]; 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
|
||||
|
||||
Reference in New Issue
Block a user