Bug 1300403

Summary: [RFE] systemd-cgls should show the cg hierarchy of a unit
Product: Red Hat Enterprise Linux 7 Reporter: Fabian Deutsch <fdeutsch>
Component: systemdAssignee: Lukáš Nykrýn <lnykryn>
Status: CLOSED UPSTREAM QA Contact: qe-baseos-daemons
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.3CC: bblaskov, jsynacek, lnykryn, systemd-maint-list
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-25 13:57:14 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:

Description Fabian Deutsch 2016-01-20 17:02:23 UTC
Currently systemd-cgls shows the complete hierarchy, it would be nice if it could take a unit and only show the hierarchy for that specific unit, i.e. the user.slice.

Comment 2 Lukáš Nykrýn 2016-01-21 08:32:46 UTC
For now you can call someting like this:

systemd-cgls /sys/fs/cgroup/systemd/$(systemctl show -p ControlGroup cups.service | sed 's/^.*=//')

Comment 3 Jan Synacek 2017-01-25 13:57:14 UTC
No point keeping this RFE downstream:

https://github.com/systemd/systemd/issues/5156