summaryrefslogtreecommitdiffstats
path: root/docs/manual/stopping.xml
diff options
context:
space:
mode:
authorColm MacCarthaigh <colm@apache.org>2005-08-26 18:11:45 +0200
committerColm MacCarthaigh <colm@apache.org>2005-08-26 18:11:45 +0200
commitab0d82ccf23fb3904c8d52eeea7a6a885f69df71 (patch)
treeabb489ab66c0679a24db6668a1ff90b6e6e79c40 /docs/manual/stopping.xml
parentImplement a "graceful-stop" for the prefork MPM (might aswell do the hard one (diff)
downloadapache2-ab0d82ccf23fb3904c8d52eeea7a6a885f69df71.tar.xz
apache2-ab0d82ccf23fb3904c8d52eeea7a6a885f69df71.zip
Documentation changes relevant to new graceful-stop command line argument
for httpd and apachectl, and the the "GracefulShutdownTimeout" directive. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@240271 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/manual/stopping.xml')
-rw-r--r--docs/manual/stopping.xml27
1 files changed, 26 insertions, 1 deletions
diff --git a/docs/manual/stopping.xml b/docs/manual/stopping.xml
index cc2057e307..d3798f65d8 100644
--- a/docs/manual/stopping.xml
+++ b/docs/manual/stopping.xml
@@ -61,7 +61,7 @@
<p>The second method of signaling the <program>httpd</program> processes
is to use the <code>-k</code> command line options: <code>stop</code>,
- <code>restart</code>, and <code>graceful</code>,
+ <code>restart</code>, <code>graceful</code> and <code>graceful-stop</code>,
as described below. These are arguments to the <program>
httpd</program> binary, but we recommend that
you send them using the <program>apachectl</program> control script, which
@@ -181,6 +181,31 @@ restart then your parent will not restart, it will exit with an
error. See above for a method of avoiding this.</note>
</section>
+<section id="gracefulstop"><title>Graceful Stop</title>
+
+<dl><dt>Signal: WINCH</dt>
+<dd><code>apachectl -k graceful-stop</code></dd>
+</dl>
+
+ <p>The <code>WINCH</code> or <code>graceful-stop</code> signal causes
+ the parent process to <em>advise</em> the children to exit after
+ their current request (or to exit immediately if they're not
+ serving anything). The parent will then remove it's <directive
+ module="mpm_common">PidFile</directive> and cease listening on
+ all ports. The parent will continue to run, and monitor children
+ which are handling requests. Once all children have finalised
+ and exited or the timeout specified by the <directive
+ module="mpm_common">GracefulShutdownTimeout</directive> has been
+ reached, the parent will also exit.</p>
+
+ <p>A <code>TERM</code> signal will immediately terminate the
+ parent process and all children when in the "graceful" state. However
+ as the <directive module="mpm_common">PidFile</directive> will
+ have been removed, you will not be able to use
+ <code>apachectl</code> or <code>httpd</code> to send this signal,</p>
+</section>
+
+
<section id="race"><title>Appendix: signals and race conditions</title>
<p>Prior to Apache 1.2b9 there were several <em>race