<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - systemd-escape && systemd-nspawn"
href="https://bugs.freedesktop.org/show_bug.cgi?id=89765#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - systemd-escape && systemd-nspawn"
href="https://bugs.freedesktop.org/show_bug.cgi?id=89765">bug 89765</a>
from <span class="vcard"><a class="email" href="mailto:disarmer.mk@gmail.com" title="disarmer <disarmer.mk@gmail.com>"> <span class="fn">disarmer</span></a>
</span></b>
<pre>(In reply to Lennart Poettering from <a href="show_bug.cgi?id=89765#c3">comment #3</a>)
<span class="quote">> > 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.</span >
Yes, but it returns broken path even for container system manager:
% systemctl -a show -p ControlGroup
ControlGroup=/system.slice/system-systemd\x5cx2dnspawn.slice/<a href="mailto:systemd-nspawn@grey.service">systemd-nspawn@grey.service</a>
But actually path is:
% find /sys/fs/cgroup/systemd/ -name '*nspawn.slice'
/sys/fs/cgroup/systemd/system.slice/system-systemd\x2dnspawn.slice</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>