Red Hat Bugzilla – Bug 509466
httpd start/stop doesn't work
Last modified: 2009-08-18 07:52:54 EDT
After enabling the httpd service and booting httpd is running correctly but cannot be shutdown using the initscript. Shutting down the machine results in a "shutting down httpd: FAILED".
The reason seems to be that the initscript specifies the pidfile as "/var/run/httpd/httpd.pid" yet after the sevice is started the actual pidfile used is "/var/run/httpd.pid". As a result the shutdown of the service files because the wrong pidfile gets checked.
Changing the pidfile variable in the initscript to "/var/run/httpd.pid" makes the symptoms go away but the real problem seems to be that the initscript/httpd doesn't create the right pidfile to begin with.
*** This bug has been marked as a duplicate of bug 508170 ***