Controlling httpd Lifecycle

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

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.

For more details about the httpd server lifecycle see:

httpd Server Lifecycle

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