]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
Add sample /etc/sysconfig/cgconfig
authorJan Safranek <jsafrane@redhat.com>
Tue, 22 Dec 2009 08:23:42 +0000 (09:23 +0100)
committerJan Safranek <jsafrane@redhat.com>
Tue, 22 Dec 2009 08:23:42 +0000 (09:23 +0100)
Feel free to rephrase it's content, I could not find any better words to
describe sysdefault group usability.

Changelog:
 - set the default to 'yes'

Signed-off-by: Jan Safranek <jsafrane@redhat.com>
samples/Makefile.am
samples/cgconfig.sysconfig [new file with mode: 0644]

index 347dd60499a7392235e839824cbabbc6f992d71f..1bca4a1e4d0e89f9fe6d83ed9d18331964b1e39c 100644 (file)
@@ -1 +1 @@
-EXTRA_DIST = cgconfig.conf cgred.conf cgrules.conf
+EXTRA_DIST = cgconfig.conf cgred.conf cgrules.conf cgconfig.sysdefault
diff --git a/samples/cgconfig.sysconfig b/samples/cgconfig.sysconfig
new file mode 100644 (file)
index 0000000..5a61bf6
--- /dev/null
@@ -0,0 +1,12 @@
+# Service cgconfig can create a default group in all mounted hierarchies and
+# move all processes there on boot. If no default rule is specified in
+# /etc/cgrules.conf, the default group is named '/sysdefault'.
+# This automatically created group(s) can be useful e.g. when using 'cpu'
+# controller to limit cpu.shares of this default group and allowing some more
+# important group take most of the CPU.
+#
+# By default, create these groups:
+CREATE_DEFAULT=yes
+
+# Uncomment following line to disable creation of the default group on startup:
+# CREATE_DEFAULT=no