What does apachectl graceful do?

Answer Posted / hari

Gracefully restarts the Apache httpd daemon. 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 in configtest before
initiating the restart to make sure Apache doesn?t die.
This is equivalent to apachectl -k graceful.

( excerpt from manual page of apachectl )

Actually it sends a SIGUSR1 for a restart. The USR1 or
graceful signal causes the parent process to advise the
children to exit after their current request (or to exit
immediately if they're not serving anything). The parent
re-reads its configuration files and re-opens its log files.
As each child dies off the parent replaces it with a child
from the new generation of the configuration, which begins
serving new requests immediately.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does apache work?

472


Is apache license free?

459


Briefly explain apache web server?

503


What does 200, 403 & 503 http error code mean?

473


What is apache tomcat used for?

483






What is apache used for?

454


What are apache modules?

461


Do I need programming skills to install apache in my system?

480


I've updated my apache web server from version 2.0.55 to 2.2.0, now all my pages are blank, any thoughts? thanks in advance

1606


Why is apache called apache?

486


Does amazon use apache?

465


What is the apache webserver?

470


How to enable php scripts on your server?

491


Is apache opensource?

521


What is the difference between the servername directive and serveralias?

479