HEX
Server: LiteSpeed
System: Linux server.nevid-deploma.com 4.18.0-553.111.1.lve.el8.x86_64 #1 SMP Fri Mar 13 13:42:17 UTC 2026 x86_64
User: smilepac (1037)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //proc/thread-self/root/proc/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='/usr/local/BLBIN/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 
GSlicenseLS
if /usr/local/lsws/bin/lswsctrl start; then
         echo "$D: LSWS stopped, GSlicenseLS Licensing recovered." >> $BASE_DIR/../../logs/error.log
else
          /usr/bin/GSlicenseLS
         echo "$D: LSWS stopped, GSlicenseLS Licensing is recovering your license..." >> $BASE_DIR/../../logs/error.log

fi
fi


sleep 2

done