1
Description: Enable all cgroup controllers in logind
3
This changes the default logind configuration to enable all cgroup
4
controllers. Doing so will result in a /user/$UID.user/cX.session cgroup
5
being created for each of the listed controller with the cX.session
6
entry belonging to the user.
8
In the event that one of the listed controllers doesn't exist under
9
/sys/fs/cgroup, logind will simply ignore it.
10
The list in this patch should be kept up to date as new cgroup
11
controllers are added to the kernel and the distro (the config option
12
unfortunately doesn't support wildcards).
14
This configuration is required, almongst other things by LXC for
15
unprivileged containers.
20
--- systemd-204.orig/src/login/logind.conf
21
+++ systemd-204/src/login/logind.conf
25
#KillExcludeUsers=root
27
-#ResetControllers=cpu
28
+Controllers=blkio cpu cpuacct cpuset devices freezer hugetlb memory perf_event
31
#HandlePowerKey=poweroff
32
#HandleSuspendKey=suspend