Bug 1159951
| Summary: | [RFE] systemctl commands "add-wants" and "add-requires" | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Pat Riehecky <riehecky> |
| Component: | systemd | Assignee: | Lukáš Nykrýn <lnykryn> |
| Status: | CLOSED ERRATA | QA Contact: | qe-baseos-daemons |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.0 | CC: | jscotka, lnykryn, rskvaril, systemd-maint-list |
| Target Milestone: | rc | Keywords: | FutureFeature |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | systemd-219-1.el7 | Doc Type: | Enhancement |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-11-19 15:01:32 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
Pat Riehecky
2014-11-03 17:01:21 UTC
This is planned feature for 7.2. This should be now fixed with the rebase. in systemd-219-13.el7.x86_64
systemctl add-requires TARGET NAME
add param "Requires=NAME" into TARGET
#systemctl show testscript.service| grep Wants
Wants=cups.service system.slice
#systemctl add-wants testscript.service cups
#systemctl show testscript.service| grep Wants
Wants=cups.service system.slice
systemctl add-wants TARGET NAME
add param "Wants=NAME" into TARGET
#systemctl show testscript.service| grep Requires
Requires=basic.target
#systemctl add-requires testscript.service cups
#systemctl show testscript.service| grep Requires
Requires=cups.service basic.target
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-2092.html |