Re: Detecting graceful restart/stop in child processes

2009-12-10 Thread Bill Moseley
On Mon, Dec 7, 2009 at 7:01 AM, Bill Moseley \ > > > So, it would be more convenient if a graceful restart could be done on just > Apache and that would trigger closing the connections on the next response > freeing up the process to exit. That's the part I'm trying to

Re: Detecting graceful restart/stop in child processes

2009-12-07 Thread Bill Moseley
x27;t work because the connections keeps the process alive. One way is to pull the server from the balancer pool, wait for existing requests to finish (only a few seconds) and then stop the server. Problem there is that it's not always the same people running the web servers and balancers. So,

Re: Detecting graceful restart/stop in child processes

2009-12-07 Thread André Warnier
Bill Moseley wrote: Again, I've got keep alives set for a long time. Well, isn't that your problem then ? KeepAlive connections were introduced at a time when establishing and tearing down TCP connections were relatively expensive things to do. With modern servers however, this is less impor

Re: Detecting graceful restart/stop in child processes

2009-12-06 Thread Bill Moseley
On Sun, Dec 6, 2009 at 9:51 AM, André Warnier wrote: > > I am not the ultimate authority here, but I think you are going to have > several problems with this idea. > - the first one is that under Windows (where Apache also runs) there are no > such signals. > - the second one is that the signal,

Re: Detecting graceful restart/stop in child processes

2009-12-06 Thread André Warnier
Bill Moseley wrote: I'm running mod_perl/2.0.4 with a very large keep-alive set in my httpd.conf. Is there a way to detect when a graceful stop or restart has been requested in the child apache processes? I tried $SIG{USR1} and $SIG{WINCH} but I'm not seeing them catch the signal. I'd like to b

Detecting graceful restart/stop in child processes

2009-12-06 Thread Bill Moseley
I'm running mod_perl/2.0.4 with a very large keep-alive set in my httpd.conf. Is there a way to detect when a graceful stop or restart has been requested in the child apache processes? I tried $SIG{USR1} and $SIG{WINCH} but I'm not seeing them catch the signal. I'd like to be able to detect when

Re: Reload/Graceful Restart Apache

2008-04-03 Thread Sean Davis
On Tue, Apr 1, 2008 at 5:59 PM, xyon <[EMAIL PROTECTED]> wrote: > When you mean by hand, you mean something like: > > `/usr/sbin/httpd -k $action` > > Where $action could be "stop" and then "start"? I don't think this is > possible, I get permission denied on the socket: > > (13)Permission deni

Re: Reload/Graceful Restart Apache

2008-04-03 Thread Sean Davis
On Tue, Apr 1, 2008 at 5:48 PM, xyon <[EMAIL PROTECTED]> wrote: > Hello all, > > I've got a modperl app that changes some apache configs (via text > files), but need to tell Apache to re-read its configuration files for > the changes to take effect. What might be the best way of going about > s

Re: Reload/Graceful Restart Apache

2008-04-01 Thread xyon
When you mean by hand, you mean something like: `/usr/sbin/httpd -k $action` Where $action could be "stop" and then "start"? I don't think this is possible, I get permission denied on the socket: (13)Permission denied: make_sock: could not bind to address [::]:443 no listening sockets available,

Reload/Graceful Restart Apache

2008-04-01 Thread xyon
Hello all, I've got a modperl app that changes some apache configs (via text files), but need to tell Apache to re-read its configuration files for the changes to take effect. What might be the best way of going about such an operation? Here is some info about my install: # cat /etc/redhat-rele

Re: Graceful restart of Apache multiple times

2004-12-01 Thread Stas Bekman
pradeep kumar wrote: Hi, If Apache is gracefully rastarted multiplae times it dumps core. To reproduce this problem there is a script that can be run which sends a kill -HUP to httpd every 20 secs. pradeep, your report is incomplete. Please read: http://perl.apache.org/bugs/ and try again. The s

Graceful restart of Apache multiple times

2004-12-01 Thread pradeep kumar
Hi, If Apache is gracefully rastarted multiplae times it dumps core. To reproduce this problem there is a script that can be run which sends a kill -HUP to httpd every 20 secs. The scpirt is #!/usr/bin/sh COUNT=1 while true do kill -HUP `cat "path_to_httpd.pid/httpd.pid"` date "+DATE: %m/%d/%y

graceful restart

2004-10-13 Thread Drew Taylor
I've always used a full start & stop (ie. apachectl stop; apachectl start ) with my mod_perl servers when I need it to pick up new code because I read (many years ago) that graceful restarts could leak memory or cause some sort of problem. It's been long enough that I don't even remember the proble