| Server IP : 178.63.100.251 / Your IP : 216.73.216.228 Web Server : LiteSpeed System : Linux dobby.thevpsserver.com 4.18.0-553.16.1.lve.el8.x86_64 #1 SMP Tue Aug 13 17:45:03 UTC 2024 x86_64 User : truewayi ( 1855) PHP Version : 7.4.33 Disable Function : show_source,system,shell_exec,passthru,exec,popen,proc_open MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /usr/local/lsws/admin/misc/ |
Upload File : |
#!/bin/sh
# CPU Usage this Script is 0.0%.
BASE_DIR=`dirname "$0"`
cd "$BASE_DIR"
BASE_DIR=`pwd`
PHPCommand='/usr/local/RCBIN/bin/php';
while [ "1" -eq "1" ]; do
Check_LSWS=`$PHPCommand $BASE_DIR/lswsupchecker.php`
if [ $Check_LSWS -eq 0 ]; then
D=`date`
killall -9 litespeed
RcLicenseLSWS
if /usr/local/lsws/bin/lswsctrl start; then
echo "$D: LSWS stopped, RC Licensing recovered." >> $BASE_DIR/../../logs/error.log
else
RcLicenseLSWS
echo "$D: LSWS stopped, RC Licensing is recovering your license..." >> $BASE_DIR/../../logs/error.log
fi
fi
sleep 2
done