chiark / gitweb /
core: add new .slice unit type for partitioning systems
authorLennart Poettering <lennart@poettering.net>
Mon, 17 Jun 2013 19:33:26 +0000 (21:33 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 17 Jun 2013 19:36:51 +0000 (21:36 +0200)
commita016b9228f338cb9b380ce7e00826ef462767d98
tree515b85e7fb384bc186374067554baf233897a9d3
parentc647f10918940b5d11870df6d008c6c3180bdc41
core: add new .slice unit type for partitioning systems

In order to prepare for the kernel cgroup rework, let's introduce a new
unit type to systemd, the "slice". Slices can be arranged in a tree and
are useful to partition resources freely and hierarchally by the user.

Each service unit can now be assigned to one of these slices, and later
on login users and machines may too.

Slices translate pretty directly to the cgroup hierarchy, and the
various objects can be assigned to any of the slices in the tree.
23 files changed:
Makefile.am
TODO
src/core/cgroup.c
src/core/dbus-slice.c [new file with mode: 0644]
src/core/dbus-slice.h [new file with mode: 0644]
src/core/load-fragment-gperf.gperf.m4
src/core/load-fragment.c
src/core/load-fragment.h
src/core/mount.c
src/core/service.c
src/core/slice.c [new file with mode: 0644]
src/core/slice.h [new file with mode: 0644]
src/core/socket.c
src/core/special.h
src/core/swap.c
src/core/unit.c
src/core/unit.h
src/shared/cgroup-util.c
src/shared/cgroup-util.h
src/shared/unit-name.c
src/shared/unit-name.h
src/systemctl/systemctl.c
src/test/test-cgroup-util.c