Controlling httpd Lifecycle: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 10: Line 10:


=Use <tt>apachectl</tt> Control Script=
=Use <tt>apachectl</tt> Control Script=
This is the recommended method to control the httpd server life cycle.


<pre>
<pre>

Revision as of 20:25, 2 January 2017

Internal

Overview

The lifecycle of the httpd server is controlled by sending Unix signals into the httpd parent process.

The signals can be sent into the parent process using the httpd process directly, using the -k command line option or (recommended) the apachectl control script.

Use apachectl Control Script

This is the recommended method to control the httpd server life cycle.

apachectl -k stop|graceful|restart|graceful-stop

Send Signals Directly to httpd

httpd -TERM|-USR1|-HUP|-WINCH $(cat /usr/local/apache2/logs/httpd.pid)

Send Commands to httpd with -k Command Line Option

httpd -k stop|graceful|restart|graceful-stop