|Summary:||Fedora "systemctl status httpd.service" says 'failed' after issuing a graceful command|
|Product:||Apache httpd-2||Reporter:||Joe Honton <joe>|
|Component:||Platform||Assignee:||Apache HTTPD Bugs Mailing List <bugs>|
Description Joe Honton 2012-04-21 02:24:25 UTC
Beginning with Fedora 15, the command "service httpd status" is handled by the new systemd commands instead of the older SysVinit commands. These new commands use a syntax like "systemctl status httpd.service". The new systemd commands work well to start, stop and display the status of httpd, but it does not support the graceful option. As a workaround, I can still use the old command to gracefully reload the configuration files, and this works: the server reloads the configuration and continues to serve requests, but unfortunately the status command says otherwise: # systemctl status httpd.service httpd.service - The Apache HTTP Server (prefork MPM) Loaded: loaded (/lib/systemd/system/httpd.service; enabled) Active: failed since Fri, 20 Apr 2012 14:05:39 -0700; 4h 44min ago Process: 20019 ExecStop=/usr/sbin/httpd $OPTIONS -k stop (code=exited, status=0/SUCCESS) Process: 26544 ExecReload=/bin/kill -HUP $MAINPID (code=exited, status=0/SUCCESS) Process: 26543 ExecReload=/usr/sbin/httpd $OPTIONS -t (code=exited, status=0/SUCCESS) Main PID: 1114 (code=exited, status=1/FAILURE) CGroup: name=systemd:/system/httpd.service When properly working the third line should read as: Active: active (running since Fri, 20 Apr 2012 14:05:39 -0700; 4h 44min ago
Comment 1 Jeff Trawick 2012-04-21 06:50:52 UTC
The report appears to be limited to scripts provided with Fedora, so report this to the Fedora project.