24hr session restart

This commit is contained in:
2023-04-26 22:24:07 -05:00
parent da4ac8e602
commit 1225a1f88e
2 changed files with 2 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
VERS='3.8.120-04232023'
VERS='3.8.121-04232023'
MMFOLDER="/opt/idssys/mediamanager"
MMSRV=$(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1)

View File

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