LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   How to force apache To reload it's conf file????? (https://www.linuxquestions.org/questions/programming-9/how-to-force-apache-to-reload-its-conf-file-659129/)

ral0r3us 07-29-2008 07:51 PM

How to force apache To reload it's conf file?????
 
Before you jump to answer: "why dont you do /apachectl graceful or kill -HUD "cat apache.pid" etc.." i tell you that this simply wont do the trick :(
Anyway, what i need is to force apache re-read it's configuration file without killing any child (i use apache2 with prefork)
Why? Simple i need to be able to configure MaxClients and KeepAliveTimeout online.
Any ideas??

blacky_5251 07-29-2008 11:37 PM

Perhaps "kill -HUP" would be better instead of kill "-HUD"? Or perhaps that's just a typo and you are already using HUP.

The "kill -HUP" approach is what the "service httpd reload" command will do, so if that doesn't work, I don't know what would.

ral0r3us 07-30-2008 06:41 AM

Quote:

Originally Posted by blacky_5251 (Post 3230518)
Perhaps "kill -HUP" would be better instead of kill "-HUD"? Or perhaps that's just a typo and you are already using HUP.

The "kill -HUP" approach is what the "service httpd reload" command will do, so if that doesn't work, I don't know what would.

Yup m8 it was a typo. But i think i found the function that apache uses
to fetch the MaxClients directive. I think it's prefork.c (for mpm=prefork)
but it's a royal mess in there so we'll see if i manage lol.:p


All times are GMT -5. The time now is 08:52 PM.