Bug 1048123
Summary: | `systemctl start' returns 0 despite not starting anything | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Miroslav Franc <mfranc> | |
Component: | glibc | Assignee: | Siddhesh Poyarekar <spoyarek> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Arjun Shankar <ashankar> | |
Severity: | medium | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 7.0 | CC: | ashankar, codonell, fweimer, lnykryn, mcermak, mnewsome, ohudlick, pfrankli, spoyarek, systemd-maint-list, tim | |
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | All | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | glibc-2.17-50.el7 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1070416 (view as bug list) | Environment: | ||
Last Closed: | 2014-06-13 12:54:09 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
Miroslav Franc
2014-01-03 09:07:15 UTC
Nscd.service is Type=simple. This option is for well-behaved daemon which can handle error situation by itself and does not quit. For this type systemctl considers that start action was successful in the case that the binary was started. Solution here is to change ncsd daemon to handle error situations or change type to forking and remove the --foreground parameter. Another solution (as forking is not really necessary here): nscd would have to tell systemd at some point that it cannot start. This can be done by patching nscd to use sd_notify http://www.freedesktop.org/software/systemd/man/sd_notify.html and changing the unit type to notify. (In reply to Timothée Ravier from comment #5) > Another solution (as forking is not really necessary here): nscd would have > to tell systemd at some point that it cannot start. This can be done by > patching nscd to use sd_notify > http://www.freedesktop.org/software/systemd/man/sd_notify.html and changing > the unit type to notify. We do not wish to patch nscd to depend on systemd, instead we are going to switch to forking with the parent waiting for the child to startup and the child providing an error code to the parent when startup is complete. See the upstream discussion around here: https://sourceware.org/ml/libc-alpha/2014-02/msg00747.html We are going to have a solution in place that will make this work reliably. This request was resolved in Red Hat Enterprise Linux 7.0. Contact your manager or support representative in case you have further questions about the request. |