
05-28-2010, 12:43 PM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,590
|
|
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.
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
and edit lsws/bin/lswsctrl script, uncomment
at the beginning of the file. do
Code:
./lswsctrl stop
./lswsctrl start
It will start lshttpd in 2 seconds if cPanel kills off LSWS.
|