Soft apache stopping

This is a discussion on Soft apache stopping within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi all, I search how I can stop an apache server, after active connection were close. The goal is to ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-20-2006
max
 
Posts: n/a
Default Soft apache stopping

Hi all,

I search how I can stop an apache server, after active connection were
close. The goal is to not accept new connection, wait active one
finished and stop the server for running a maintenance script and after
restart the server.

If someone have a good idea...

--
Max

  #2 (permalink)  
Old 12-20-2006
Mike
 
Posts: n/a
Default Re: Soft apache stopping


max wrote:
> Hi all,
>
> I search how I can stop an apache server, after active connection were
> close. The goal is to not accept new connection, wait active one
> finished and stop the server for running a maintenance script and after
> restart the server.
>
> If someone have a good idea...
>
> --
> Max


man apachectl <--- Please READ

You're looking for the graceful flag to apachectl"

'apachectl graceful'

  #3 (permalink)  
Old 12-20-2006
Mike
 
Posts: n/a
Default Re: Soft apache stopping


Mike wrote:
> max wrote:
> > Hi all,
> >
> > I search how I can stop an apache server, after active connection were
> > close. The goal is to not accept new connection, wait active one
> > finished and stop the server for running a maintenance script and after
> > restart the server.
> >
> > If someone have a good idea...
> >
> > --
> > Max

>
> man apachectl <--- Please READ
>
> You're looking for the graceful flag to apachectl"
>
> 'apachectl graceful'


Or 'apachectl graceful-stop' as I'm not 100% sure on what you plan on
doing.

  #4 (permalink)  
Old 12-20-2006
HansH
 
Posts: n/a
Default Re: Soft apache stopping

"max" <max.pourdonner@laposte.net> schreef in bericht
news:1166634276.063105.325180@a3g2000cwd.googlegro ups.com...
> Hi all,
>
> I search how I can stop an apache server, after active connection were
> close. The goal is to not accept new connection, wait active one
> finished and stop the server for running a maintenance script and after
> restart the server.
>
> If someone have a good idea...

http://httpd.apache.org/docs/2.2/stopping.html#graceful
apachectl -k graceful-stop
or for less recent versions
apachectl -k graceful

Those act the same but when setting
GracefulShutDownTimeout
http://httpd.apache.org/docs/2.2/mod...hutdowntimeout


HansH
--
An RTF Manual for this product is not available.


  #5 (permalink)  
Old 12-21-2006
max
 
Posts: n/a
Default Re: Soft apache stopping


Mike a écrit :


>
> man apachectl <--- Please READ
>
> You're looking for the graceful flag to apachectl"
>
> 'apachectl graceful'


I have read it but graceful flag doesn't do what I want. graceful
restart the server but I want to stop it for running scripts.
Graceful-stop doesn't work on my server (RedHat Enterprise 3, apache
2.0.46).
I think what i want is the graceful-stop but nothing in the manpage and
command doesn't work.
Is someone know when this command appear on apachectl ?

thanks for help me.

--
Max

  #6 (permalink)  
Old 12-21-2006
Mike
 
Posts: n/a
Default Re: Soft apache stopping


max wrote:
> Mike a écrit :
>
>
> >
> > man apachectl <--- Please READ
> >
> > You're looking for the graceful flag to apachectl"
> >
> > 'apachectl graceful'

>
> I have read it but graceful flag doesn't do what I want. graceful
> restart the server but I want to stop it for running scripts.
> Graceful-stop doesn't work on my server (RedHat Enterprise 3, apache
> 2.0.46).
> I think what i want is the graceful-stop but nothing in the manpage and
> command doesn't work.
> Is someone know when this command appear on apachectl ?
>
> thanks for help me.
>
> --
> Max


Yes, it seems as Apache 2.0 doesn't support 'apachectl graceful-stop'
something you may want to try is something like: 'apachectl graceful
&& apachectl stop' and that will probably be the cleanest way to stop
apache.

  #7 (permalink)  
Old 12-22-2006
max
 
Posts: n/a
Default Re: Soft apache stopping

Mike a écrit :

>
> Yes, it seems as Apache 2.0 doesn't support 'apachectl graceful-stop'
> something you may want to try is something like: 'apachectl graceful
> && apachectl stop' and that will probably be the cleanest way to stop
> apache.


In fact i try apachectl graceful && apachectl stop but it doesn't work.
I think is beacause the apachectl graceful seem to work in background
and is not blocking, so the stop occure before the graceful.

If someone have an other idea...

--
Max

 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:19 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0