Bug 815490
Summary: | "systemctl status httpd.service" says 'failed' after issuing a graceful Apache restart | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Joe Honton <joe> |
Component: | httpd | Assignee: | Joe Orton <jorton> |
Status: | CLOSED WORKSFORME | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | 16 | CC: | jkaluza, jorton, pahan |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-04-23 21:20:08 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Joe Honton
2012-04-23 17:40:11 UTC
I can't reproduce that with httpd-2.2.22-2.fc16.x86_64 # rpm -q httpd # ls -li /etc/httpd/run/httpd.pid /var/run/httpd/httpd.pid # grep -i pidfile /etc/httpd/conf/httpd.conf I meant to say... please run those commands and post the output. # rpm -q httpd httpd-2.2.22-1.fc16.x86_64 # ls -li /etc/httpd/run/httpd.pid /var/run/httpd/httpd.pid 13970 -rw-r--r--. 1 root root 6 Apr 22 03:13 /etc/httpd/run/httpd.pid 13970 -rw-r--r--. 1 root root 6 Apr 22 03:13 /var/run/httpd/httpd.pid # grep -i pidfile /etc/httpd/conf/httpd.conf PidFile run/httpd.pid Does the httpd parent process pid (look at "ps axf") match up with the pidfile in that file? Is /etc/httpd/run a symlink to /var/run/httpd? The most likely reason I can think of to explain why systemd thinks the service is dead is if it is really running is some kind of mismatch between the pidfiles. Your troubleshooting has led me to investigate the httpd error log which revealed an unclean shutdown leading to the PID file being overwritten. Here's the clues: [Fri Apr 20 14:05:39 2012] [notice] Graceful restart requested, doing restart [Fri Apr 20 14:05:39 2012] [error] (9)Bad file descriptor: apr_socket_accept: (client socket) [Fri Apr 20 14:05:56 2012] [notice] SELinux policy enabled; httpd running as context unconfined_u:system_r:httpd_t:s0 [Fri Apr 20 14:05:56 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Fri Apr 20 14:05:56 2012] [warn] pid file /etc/httpd/run/httpd.pid overwritten -- Unclean shutdown of previous Apache run? [Fri Apr 20 14:05:56 2012] [notice] Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0g-fips configured -- resuming normal operations When I run the graceful command now, everything works as expected. I am satisfied with this explanation. OK, great. Thanks for the update. |