View Single Post
  #19  
Old 05-19-2010, 05:55 PM
Tony Tony is offline
Senior Member
 
Join Date: Dec 2008
Posts: 133
Quote:
Originally Posted by mistwang View Post
Go through the code, looks like that as long as we make _check_ap_restart() function happy, we are good.

Looks like this script is only for restart/graceful-restart, maybe there is another piece of code for forced stop, start sequence?
That would appear to be the logical location for it all to start in. Although I'm sure the safeapacherestart binary has a lot of interesting aspects in it. As there is a log file /usr/local/cpanel/logs/safeapacherestart_log which only some of the log writing from ApRestart.pm others are not from it.

I think it's pretty safe to assume though it thinks lsws is not always gracefully restarting. I wish I knew why though my best guess is when multiple restarts are issued around the same time it's probably happening. As doing things that are restart heavy seem to cause it the most issues. So doing account restores in cPanel cause them in a lot of cases but normal usage you might see one every few days.
__________________
Hawk Host
Frog Host
Reply With Quote