LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-29-2008, 07:51 PM   #1
ral0r3us
LQ Newbie
 
Registered: Jul 2008
Posts: 6

Rep: Reputation: 0
Question 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??
 
Old 07-29-2008, 11:37 PM   #2
blacky_5251
Member
 
Registered: Oct 2004
Location: Adelaide Hills, South Australia
Distribution: RHEL 5&6 CentOS 5, 6 & 7
Posts: 573

Rep: Reputation: 61
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.
 
Old 07-30-2008, 06:41 AM   #3
ral0r3us
LQ Newbie
 
Registered: Jul 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Cool

Quote:
Originally Posted by blacky_5251 View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Please amend apache conf/httpd.conf file please payjoe Linux - Newbie 7 09-21-2007 05:12 PM
Force group membership reload? humbletech99 Linux - General 2 06-03-2006 04:02 AM
Apache httpd.conf file?? matux Mandriva 2 01-28-2005 09:20 AM
Fedora 1, Apache, httpd.conf file Turner Linux - Newbie 2 07-07-2004 12:11 PM
Request for http.conf file for Apache 1.3.26 Thinkgeekness Linux - Software 2 04-19-2003 12:58 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration