]> git.pld-linux.org Git - packages/libcgroup.git/blobdiff - libcgroup-conf.patch
really enable all cgroups by default
[packages/libcgroup.git] / libcgroup-conf.patch
index abc56c10e252ed0027c24e4c1b8aefb4003a9f98..3087819239c3fac02b2595fa5cb713f7c7d7d51f 100644 (file)
@@ -1,7 +1,7 @@
 diff -ur libcgroup-0.37/samples/cgconfig.conf libcgroup-0.37-conf/samples/cgconfig.conf
 --- libcgroup-0.37/samples/cgconfig.conf       2010-10-20 15:59:13.000000000 +0200
 +++ libcgroup-0.37-conf/samples/cgconfig.conf  2011-02-10 18:05:17.560363010 +0100
-@@ -10,39 +10,19 @@
+@@ -10,39 +10,23 @@
  #  WITHOUT ANY WARRANTY; without even the implied warranty of
  #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  #
@@ -42,18 +42,22 @@ diff -ur libcgroup-0.37/samples/cgconfig.conf libcgroup-0.37-conf/samples/cgconf
 -#     cpu = /mnt/cgroups/cpu;
 -#     cpuacct = /mnt/cgroups/cpuacct;
 -#}
-+# By default, mount all controllers to /cgroup/<controller>
-+
++# By default, mount all controllers to /sys/fs/cgroup/<controller>
++# systemd will mount all of them automatically.
++# For SysV style init to work you need to mount tmpfs on /sys/fs/cgroup
++# first (see /etc/fstab).
++#
 +mount {
-+      blkio   = /dev/cgroup/blkio;
-+      cpu     = /dev/cgroup/cpu;
-+      cpuacct = /dev/cgroup/cpuacct;
-+      cpuset  = /dev/cgroup/cpuset;
-+      debug   = /dev/cgroup/debug;
-+      devices = /dev/cgroup/devices;
-+      freezer = /dev/cgroup/freezer;
-+      memory  = /dev/cgroup/memory;
-+      net_cls = /dev/cgroup/net_cls;
++      blkio   = /sys/fs/cgroup/blkio;
++      cpu     = /sys/fs/cgroup/cpu;
++      cpuacct = /sys/fs/cgroup/cpuacct;
++      cpuset  = /sys/fs/cgroup/cpuset;
++##    debug   = /sys/fs/cgroup/debug;
++      devices = /sys/fs/cgroup/devices;
++      freezer = /sys/fs/cgroup/freezer;
++      memory  = /sys/fs/cgroup/memory;
++      net_cls = /sys/fs/cgroup/net_cls;
++      perf_event = /sys/fs/cgroup/perf_event;
 +}
 +
 diff -ur libcgroup-0.37/samples/cgconfig.sysconfig libcgroup-0.37-conf/samples/cgconfig.sysconfig
This page took 0.064373 seconds and 4 git commands to generate.