~stgraber/ubuntu/trusty/systemd/logind-cgroup-controllers

« back to all changes in this revision

Viewing changes to debian/patches/ubuntu-logind-controllers.patch

  • Committer: Stéphane Graber
  • Date: 2014-01-08 18:41:29 UTC
  • Revision ID: stgraber@ubuntu.com-20140108184129-aqjzkbcrlcxqnxlh
Enable all controllers in logind.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: Enable all cgroup controllers in logind
 
2
 
 
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.
 
7
 
 
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).
 
13
 
 
14
This configuration is required, almongst other things by LXC for
 
15
unprivileged containers.
 
16
 
 
17
Origin: vendor
 
18
Forwarded: not-needed
 
19
 
 
20
--- systemd-204.orig/src/login/logind.conf
 
21
+++ systemd-204/src/login/logind.conf
 
22
@@ -13,8 +13,8 @@
 
23
 #KillUserProcesses=no
 
24
 #KillOnlyUsers=
 
25
 #KillExcludeUsers=root
 
26
-#Controllers=
 
27
-#ResetControllers=cpu
 
28
+Controllers=blkio cpu cpuacct cpuset devices freezer hugetlb memory perf_event
 
29
+ResetControllers=
 
30
 #InhibitDelayMaxSec=5
 
31
 #HandlePowerKey=poweroff
 
32
 #HandleSuspendKey=suspend