chiark / gitweb /
cgroup: simplify how instantiated units are mapped to cgroups
authorLennart Poettering <lennart@poettering.net>
Thu, 11 Jul 2013 16:47:20 +0000 (18:47 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 11 Jul 2013 16:49:53 +0000 (18:49 +0200)
commitd7bd3de0654669e65b9642c248c5fa6d1d9a9f61
treefdc089ab250d033b3636f19e6dfb14d83e2d5d8e
parent8a84192905a9845fda31b65cc433127f9c2f95ae
cgroup: simplify how instantiated units are mapped to cgroups

Previously for an instantiated unit foo@bar.service we created a cgroup
foo@.service/foo@bar.service, in order to place all instances of the
same template inside the same subtree. As we now implicitly add all
instantiated units into one per-template slice we don't need this
complexity anymore, and instance units can map directly to the cgroups
of their full name.
src/core/unit.c
src/shared/cgroup-util.c
src/test/test-cgroup-util.c