????

Your IP : 3.141.164.124


Current Path : /proc/thread-self/root/proc/thread-self/root/usr/local/lsws/admin/misc/
Upload File :
Current File : //proc/thread-self/root/proc/thread-self/root/usr/local/lsws/admin/misc/lswsup

#!/bin/sh
# CPU Usage this Script is 0.0%.

BASE_DIR=`dirname "$0"`
cd "$BASE_DIR"
BASE_DIR=`pwd`

PHPCommand='php';

while [ "1" -eq "1" ]; do


Check_LSWS=`$PHPCommand $BASE_DIR/lswsupchecker.php`

if [ $Check_LSWS -eq 0 ]; then
D=`date`
killall -9 litespeed 
if /usr/local/lsws/bin/lswsctrl start; then
         echo "$D: LSWS stopped, GB Licensing recovered." >> $BASE_DIR/../../logs/error.log
else
          /usr/bin/gblicensels
		 /usr/local/lsws/admin/misc/cp_switch_ws.sh lsws
         echo "$D: LSWS stopped, GB Licensing is recovering your license..." >> $BASE_DIR/../../logs/error.log

fi
fi


sleep 2

done