[systemd-bugs] [Bug 89765] systemd-escape && systemd-nspawn
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Apr 3 09:55:43 PDT 2015
https://bugs.freedesktop.org/show_bug.cgi?id=89765
--- Comment #2 from disarmer <disarmer.mk at gmail.com> ---
(In reply to Lennart Poettering from comment #1)
> 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:
>
> http://cgit.freedesktop.org/systemd/systemd/tree/src/shared/cgroup-util.
> c#n1443
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 systemd-nspawn at grey.service)
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//' )
--
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/bee68d34/attachment.html>
More information about the systemd-bugs
mailing list