We are still working on it.
In the mean time, you can try our wswatch.sh script. Update /usr/local/lsws/bin/wswatch.sh with bellow shell script.
and edit lsws/bin/lswsctrl script, uncomment
at the beginning of the file. do
It will start lshttpd in 2 seconds if cPanel kills off LSWS.
In the mean time, you can try our wswatch.sh script. Update /usr/local/lsws/bin/wswatch.sh with bellow shell script.
Code:
#!/bin/sh
BASE_DIR=`dirname "$0"`
cd "$BASE_DIR"
BASE_DIR=`pwd`
while [ "1" -eq "1" ]; do
ERR=1
if [ -f /tmp/lshttpd/lshttpd.pid ]; then
kill -0 `cat /tmp/lshttpd/lshttpd.pid` 2>/dev/null
ERR=$?
fi
if [ $ERR -ne 0 ]; then
sleep 2
if [ -f /tmp/lshttpd/lshttpd.pid ]; then
kill -0 `cat /tmp/lshttpd/lshttpd.pid` 2>/dev/null
ERR=$?
fi
fi
if [ $ERR -ne 0 ]; then
./lshttpd
D=`date`
echo "$D: LSWS stopped, start LSWS." >> $BASE_DIR/../logs/error.log
fi
sleep 2
done
Code:
WSWATCH=1
Code:
./lswsctrl stop
./lswsctrl start