A Gracefull restart which will be very help full in the production environments
apache2ctl is a front end to the Apache HyperText Transfer Protocol (HTTP) server. It is designed to help the administrator control the functioning of the Apache httpd daemon.
graceful- Gracefully restarts the Apache
httpddaemon. If the daemon is not running, it is started. This differs from a normal restart in that currently open connections are not aborted. A side effect is that old log files will not be closed immediately. This means that if used in a log rotation script, a substantial delay may be necessary to ensure that the old log files are closed before processing them. This command automatically checks the configuration files as inconfigtestbefore initiating the restart to make sure Apache doesn’t die. This is equivalent toapache2ctl -k graceful. graceful-stop- Gracefully stops the Apache
httpddaemon. This differs from a normal stop in that currently open connections are not aborted. A side effect is that old log files will not be closed immediately. This is equivalent toapache2ctl -k graceful-stop.