LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > [RESOLVED] LSWS 4.0.13 - Signal 9's gone... Signal 15's new

Reply
 
Thread Tools Display Modes
  #21  
Old 05-28-2010, 12:43 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
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

Code:
WSWATCH=1
at the beginning of the file. do
Code:
./lswsctrl stop
./lswsctrl start
It will start lshttpd in 2 seconds if cPanel kills off LSWS.
Reply With Quote
  #22  
Old 05-29-2010, 10:14 AM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
okay, thanks, just did the changes and will watch this weekend to see if it helps

my lsws location is under /opt/lsws btw, I guess you changed the default over time
Reply With Quote
  #23  
Old 06-13-2010, 08:48 AM
anewday anewday is offline
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 723
Quote:
Originally Posted by aww View Post
okay, thanks, just did the changes and will watch this weekend to see if it helps

my lsws location is under /opt/lsws btw, I guess you changed the default over time
How did it go?
Reply With Quote
  #24  
Old 06-13-2010, 10:58 AM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
Quote:
Originally Posted by anewday View Post
How did it go?
Oh sorry for the lack of updates, the above workaround works perfect, no more emails about signal 15s
Reply With Quote
  #25  
Old 07-12-2010, 06:10 AM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
Actually, you know what - with the 4.0.15 it's back

Every few hours or so
Quote:
At [12/Jul/2010:01:11:02 -0400], web server with pid=18064 received unexpected signal=15, no core file is created.

At [12/Jul/2010:03:09:57 -0400], web server with pid=15548 received unexpected signal=15, no core file is created.

At [12/Jul/2010:05:08:50 -0400], web server with pid=11271 received unexpected signal=15, no core file is created.

At [12/Jul/2010:09:06:40 -0400], web server with pid=24521 received unexpected signal=15, no core file is created.
Would the upgrade have clobbered the old wswatch.sh or lsws/bin/lswsctrl ?
Reply With Quote
  #26  
Old 07-12-2010, 02:17 PM
MikeDVB MikeDVB is offline
Senior Member
 
Join Date: Jul 2009
Posts: 218
Quote:
Originally Posted by aww View Post
Actually, you know what - with the 4.0.15 it's back

Every few hours or so


Would the upgrade have clobbered the old wswatch.sh or lsws/bin/lswsctrl ?
The newest .15 disabled wswatch by default as it was causing issues on cPanel servers when editing the httpd.conf (or at least, that's what it said in my support ticket).
__________________
Michael Denney - MDDHosting, LLC - Professional Hosting Solutions
LiteSpeed Powered - Shared, Reseller, Semi-Dedicated, and VPS
http://www.mddhosting.com/
Reply With Quote
  #27  
Old 07-28-2010, 09:20 AM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
I really hope they find a workaround for this soon, the sheer number of times it's happening is worrying me.

Why is cpanel so anti-non-apache?

Last edited by aww; 07-28-2010 at 09:25 AM..
Reply With Quote
  #28  
Old 07-29-2010, 09:57 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
Please download and try 4.0.16 release package, it should take care of the signal 9 issue. Will announce it tomorrow.
Reply With Quote
  #29  
Old 07-29-2010, 10:52 PM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
Ah, I noticed the new date on 4.0.16 yesterday and gave it a try and sure enough it did indeed stop the problem.

Thank you!
Reply With Quote
  #30  
Old 08-12-2010, 04:59 AM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
I spoke too soon.

Getting Signal 15's every 2 hours now on 4.0.16
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:28 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.