Question & Additional Information
 
What does apachectl graceful do?
Add to My IQ
 

Answer Title
Answer
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.
Question Tag Title
Tags
Question Asked At Title
Asked At
None
Question Job Title
Job Titles


Check out our newest job listings!

Post a Job! $49 for 60 days



Your Name:
Add your comment text
 
Related Questions
Related Questions
Flag this interview question as inappropriate Inappropriate
See Answer
--> apachectl configtest
OR
--> apachectl -t
OR
--> /etc/init.d/httpd configtest
Create Date
:
Tuesday, March 18, 2008
Asked At
:
None
Job Positions
:
Click here to improve the Interview Question, Answer and other fields.
Comments (0) :
Goto add your comment on the Question 
Flag this interview question as inappropriate Inappropriate
See Answer
service httpd stop -- works fine, if you have added apache as one of the service in your config.
apachectl stop      -- use this if you want to stop apache through apache's way.
Create Date
:
Tuesday, March 18, 2008
Tags
:
Asked At
:
None
Job Positions
:
Click here to improve the Interview Question, Answer and other fields.
Comments (0) :
Goto add your comment on the Question 
Flag this interview question as inappropriate Inappropriate
See Answer

 

 

Create Date
:
Monday, September 24, 2007
Tags
:
Job Positions
:
Click here to improve the Interview Question, Answer and other fields.
Comments (2) :
1.
dk123
Wednesday, March 19, 2008 6:27 AM
nice comment
2.
thingMaster
Tuesday, October 23, 2007 1:52 PM
you are overconfident. you will probably kill many patients, but drive a nice car.
Flag this interview question as inappropriate Inappropriate
See Answer
apachectl configtest
Create Date
:
Tuesday, September 04, 2007
Asked At
:
None
Job Positions
:
None
Click here to improve the Interview Question, Answer and other fields.
Comments (0) :
Goto add your comment on the Question 
 
• More Related Questions: 
Suggestions & Comments




Share Your Interview Questions
Ask Interview Questions
View Unanswered Questions





Advertise on this site