[systemd-bugs] [Bug 89765] systemd-escape && systemd-nspawn

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Apr 3 10:57:56 PDT 2015


https://bugs.freedesktop.org/show_bug.cgi?id=89765

--- Comment #4 from disarmer <disarmer.mk at gmail.com> ---
(In reply to Lennart Poettering from comment #3)
> > stat /sys/fs/cgroup/systemd/$(systemctl --user show -p ControlGroup
> > tmux.service|sed 's/.*=//' )
> 
> This is pretty good already. To get the missing prefix use the control group
> root that your PID 1 systemd instance is using, which you can query with:
> 
> systemctl -a show -p ControlGroup
> 
> i.e. don't specify a unit name, and you get the manager's properties. And do
> this for the system instance, not the user instance.
> 
> If you then concat the /sys/fs/cgroup prefix, with this PID1 cgroup root,
> with the unit path, then you should be good.

Yes, but it returns broken path even for container system manager:

% systemctl -a show -p ControlGroup
ControlGroup=/system.slice/system-systemd\x5cx2dnspawn.slice/systemd-nspawn at grey.service

But actually path is:
% find /sys/fs/cgroup/systemd/ -name '*nspawn.slice'
/sys/fs/cgroup/systemd/system.slice/system-systemd\x2dnspawn.slice

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20150403/d09269eb/attachment.html>


More information about the systemd-bugs mailing list