Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
We're still finding cases where systemd integration for httpd is not producing optimal behaviour. One such case is restart/stop handling.
Say the service is running, the user changes the configuration and runs
"systemctl restart httpd.service". Ideally that command should fail without changing the state of the running service. To implement this we really need an ExecRestartPre or something which works like ExecStartPre for restart.
Version-Release number of selected component (if applicable):
systemd-204-4.el7.x86_64
How reproducible:
Steps to Reproduce:
1. systemctl start httpd
2. echo FOO > /etc/httpd/conf.d/foo.conf
3. systemctl restart httpd
Actual results:
a) if we use an ExecStop in httpd.service which checks the config and returns an error, this triggers service-stop timeout handling and is ugly
b) if we omit ExecStop it just kills the daemon
Expected results:
"systemctl restart" command returns immediately with failure
Additional info:
We really need this or something like this to fix bug 969972, otherwise we are going to ship with awkward systemd integration in RHEL7. Is this feasible?
(In reply to Joe Orton from comment #2)
> We really need this or something like this to fix bug 969972, otherwise we
> are going to ship with awkward systemd integration in RHEL7. Is this
> feasible?
isn't what the user wants a "reload" ?
# systemctl reload httpd
??
Not sure what you mean by "what the user wants".
Reload works fine here, but we also want good behaviour for *this* case ("restart" or "stop" in the presence of a config error).
I am not sure what is scope of this bug anymore. systemctl restart should do stop and start of a service and I am pretty convinced that this should be done even if the configuration file is corrupted. In the case that user wants to reload new configuration he should use systemctl reload (and there apache can ignore it when the configuration is wrong and write something to logs).
And about the hang was not it fixed with https://bugzilla.redhat.com/show_bug.cgi?id=1012795 ?
Comment 11RHEL Program Management
2014-03-22 06:47:38 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.