Bug 986949
Summary: | StopWhenUnneeded does NOT stop service when there is nothing that Wants/Requires/... it | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Tomáš Hozza <thozza> |
Component: | systemd | Assignee: | Lukáš Nykrýn <lnykryn> |
Status: | CLOSED ERRATA | QA Contact: | Branislav Blaškovič <bblaskov> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 7.0 | CC: | bblaskov, harald, jscotka, lnykryn, riehecky, systemd-maint-list |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | systemd-208-12.el7 | Doc Type: | Bug Fix |
Doc Text: |
Cause:
If service failed during its startup we did not check for other services with StopWhenUnneeded=yes which could be stopped.
Consequence:
If service failed during its startup, other services with StopWhenUnneeded=yes where not stopped.
Fix:
Now we are performing that check even for stopping services which were never in running state.
Result:
If service fails during its startup, other services with StopWhenUnneeded=yes are stopped (of course unless some other running service needs them).
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2015-03-05 11:08:40 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: | |||
Bug Depends On: | |||
Bug Blocks: | 1004300 |
Description
Tomáš Hozza
2013-07-22 13:30:35 UTC
Type=forking ExecStart=/bin/sleep 50 That does not go together well... sleep is not forking (In reply to Harald Hoyer from comment #2) > Type=forking > ExecStart=/bin/sleep 50 > > That does not go together well... sleep is not forking These are just examples. You can replace sleep with any forking service that would fail to start in the TimeoutStartSec time range. (In reply to Tomas Hozza from comment #3) > (In reply to Harald Hoyer from comment #2) > > Type=forking > > ExecStart=/bin/sleep 50 > > > > That does not go together well... sleep is not forking > > These are just examples. You can replace sleep with any forking service > that would fail to start in the TimeoutStartSec time range. yes, sorry, you are right. That service was just for the test case to prove the bug. Fixed in git. 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. (In reply to Lennart Poettering from comment #5) > Fixed in git. And what about RHEL 7? Will it be fixed there (if not already)? This was not a blocker, so it will be in 7.1. Switching to VERIFIED according to comment #13. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-0509.html |