| Summary: | inconsistencies in list-units output | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Guillaume Rousse <guillomovitch> |
| Component: | RPM Packages | Assignee: | Colin Guthrie <mageia> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | ||
| Version: | Cauldron | ||
| Target Milestone: | --- | ||
| Hardware: | i586 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | systemd | CVE: | |
| Status comment: | |||
|
Description
Guillaume Rousse
2012-06-11 20:12:59 CEST
Manuel Hiebel
2012-06-25 04:37:29 CEST
Assignee:
bugsquad =>
mageia Yeah the bash completion stuff is not perfect when dealing with such units. There was talk of adding a dedicated mode to systemctl to provide the information needed to bash completion, but that's not happened yet. So the issue here is that the unit is disabled and thus does not show up in the list-units output. cf https://bugzilla.redhat.com/show_bug.cgi?id=748512 As noted above can also use list-unit-files which does show it up even when it's disabled as it doesn't rely on the current state. [root@jimmy ~]# systemctl is-enabled snmpd.service disabled [root@jimmy ~]# systemctl list-units --all --full | grep snmp [root@jimmy ~]# systemctl enable snmpd.service ln -s '/lib/systemd/system/snmpd.service' '/etc/systemd/system/multi-user.target.wants/snmpd.service' [root@jimmy ~]# systemctl list-units --all --full | grep snmp snmpd.service loaded inactive dead Simple Network Management Protocol (SNMP) Daemon. [root@jimmy ~]# systemctl disable snmpd.service rm '/etc/systemd/system/multi-user.target.wants/snmpd.service' [root@jimmy ~]# systemctl list-units --all --full | grep snmp [root@jimmy ~]# So for now it's not our downstream bug. I'd welcome you to go poke upstream about it, or, if you are super keen, write a patch for systemctl that could supply everything someone could want from a bash completion perspective! Status:
NEW =>
RESOLVED |