In what version did apache on linux start supporting the following in the init.d script
killproc -d 10 $httpd
I have a server with errant children at times and could not use that line in version 2.0.55 or 2.0.58. The server craps out during log rotation twice a month because the errant children are not killed properly. This results in subsys becoming locked. I have to delete two PID files (httpd.pid and apache_runtime_status) and then reboot.
If I look at any RPM based install (red hat and centos), I see that line in /etc/init.d/httpd (apache 2.2.x though… not 2.0.x.x).
(same as the line you posted a link to).
I am on a different laptop now but there is a comment above that line stating it was put into place to handle errant children.
I moved from 2.0.58 to 2.0.63 (roll your own). We’ll see if the log rotation continues to crap out every 2-3 weeks. Log rotation is set up weekly so it doesn’t happen all the time.
If it continues, I am afraid I’ll have to get the developers on board to start using a non compiled version of apache on that distro.
I’ll also look into the log rotation script to see how it restarts apache and use that link you sent as starting point.
and I forgot to mention that the init.d script also fails at times. When I remove those 2 files, apache still refuses to start. When I run apache status, it says apache is running but subsys is locked. Hence the reboot after I delete the two files.
last comment…I promise. I originally asked the question to find out when that killproc line was introduced. The server in question does NOT contain that line because I compiled from source. When I did a comparison of init.d scripts, I compared RPM based to my compiled version. (apache 2.2.x RPM vs. my compiled 2.0.58). I modified the 2.0.58 script with that killproc line but apache did not recognize it. It’s probably only supported in 2.2.x
overstock promo code