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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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' |
|
|||
|
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. |
|
|||
|
"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. |
|
|||
|
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 |
|
|||
|
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. |
|
|||
|
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 | |
|
|