Bug 655116
Summary: | systemctl condrestart SERVICENAME.service fails if SERVICENAME is not currently running | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | John Reiser <jreiser> |
Component: | systemd | Assignee: | Lennart Poettering <lpoetter> |
Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | high | Docs Contact: | |
Priority: | low | ||
Version: | rawhide | CC: | antillon.maurizio, jhrozek, k.georgiou, lpoetter, mcepl, mcepl, metherid, mschmidt, notting, plautrba, sbose, sgallagh, ssorce, theinric |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2010-12-29 11:09:06 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
John Reiser
2010-11-19 16:31:41 UTC
'service SERVICENAME condrestart' is a common command put in the %post section of spec files to ensure that services are restarted after update if they were previously running. If the service was not running, it should take no action. However, 'systemctl condrestart SERVICENAME.service' throws the error: "Job failed. See system logs and 'systemctl status' for details" There is no indication of which logs to check (and I could not find any that provided any information) and the error message should be more clear that the status command should be 'systemctl status SERVICENAME.service'. As per http://fedoraproject.org/wiki/Packaging:SysVInitScript#condrestart_and_try-restart condrestart shouldn't fail. There is a patch in http://article.gmane.org/gmane.comp.sysutils.systemd.devel/679. Bumping severity to high, because it breaks other systems and may lead to unnecessary workarounds in spec files. (In reply to comment #2) > There is a patch in http://article.gmane.org/gmane.comp.sysutils.systemd.devel/679. Sorry, there is not patch there. *** This bug has been marked as a duplicate of bug 635780 *** *** Bug 673597 has been marked as a duplicate of this bug. *** |