Controlling httpd Lifecycle: Difference between revisions
Jump to navigation
Jump to search
Line 18: | Line 18: | ||
=Send Commands to httpd with -k Command Line Option= | =Send Commands to httpd with -k Command Line Option= | ||
<pre> | |||
httpd -k stop|graceful|restart|graceful-stop | |||
</pre> |
Revision as of 20:24, 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
apachectl -k stop|graceful|restart|graceful-stop
Send Signals Directly to httpd
Send Commands to httpd with -k Command Line Option
httpd -k stop|graceful|restart|graceful-stop