<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#c2">Comment # 2</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#c1">comment #1</a>)
<span class="quote">> This is a misunderstanding, "systemd-escape" is not implementing the
> escaping logic that we use for generating cgroups paths. Instead it
> implements escaping for including arbitrary strings in unit names.
>
> The escaping used for generating cgroup names is an internal implementation
> detail of systemd really. It's implemented here:
>
> <a href="http://cgit.freedesktop.org/systemd/systemd/tree/src/shared/cgroup-util">http://cgit.freedesktop.org/systemd/systemd/tree/src/shared/cgroup-util</a>.
> c#n1443</span >
Well, but how can i get my service cgroup from outside systemd code, in bash
for example?
I previously used:
stat /sys/fs/cgroup/systemd/$(systemctl --user show -p ControlGroup
tmux.service|sed 's/.*=//' )
but it doesn't work when service is running in container via nspawn service
(systemctl start <a href="mailto:systemd-nspawn@grey.service">systemd-nspawn@grey.service</a>)
Right now only way how i can get it is:
stat /sys/fs/cgroup/systemd/$(systemctl --user show -p ControlGroup
tmux.service|sed 's/.*=//' | sed 's/x5c//' )</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>