summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorBalbir Singh <balbir@linux.vnet.ibm.com>2009-02-23 14:10:58 +0000
committerBalbir Singh <balbir@linux.vnet.ibm.com>2009-02-23 14:10:58 +0000
commit570bace5f2ba75f4fcc10a75c72726e8706cf14c (patch)
treeb6c744a9a665aa111844ae40e43a8a54884c0c52 /samples
parent74f9a91b6bccc558ed90d02ae15cd2c9d49267cb (diff)
downloadlibcg-570bace5f2ba75f4fcc10a75c72726e8706cf14c.tar.gz
libcg-570bace5f2ba75f4fcc10a75c72726e8706cf14c.tar.xz
libcg-570bace5f2ba75f4fcc10a75c72726e8706cf14c.zip
From: Ivana Varekova <varekova@redhat.com>
This patch changes cgconfig.conf - comment all rows and rename example values - to have example which should be installed to /etc/. Move cgred to /etc/sysconfig and patch spec to install all /etc/* configuration files (at least they shows examples and help to user to do their own configuration).). Signed-off-by: Ivana Varekova <varekova@redhat.com> Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com> NOTE: The spec file is still broken due to lack of packaging of pam_cgroup.so. git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@337 4f4bb910-9a46-0410-90c8-c897d4f1cd53
Diffstat (limited to 'samples')
-rw-r--r--samples/cgconfig.conf77
-rw-r--r--samples/cgred.conf2
2 files changed, 36 insertions, 43 deletions
diff --git a/samples/cgconfig.conf b/samples/cgconfig.conf
index 782f724..de77e4b 100644
--- a/samples/cgconfig.conf
+++ b/samples/cgconfig.conf
@@ -10,46 +10,39 @@
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
-# controller file
+#group daemons/www {
+# perm {
+# task {
+# uid = root;
+# gid = webmaster;
+# }
+# admin {
+# uid = root;
+# gid = root;
+# }
+# }
+# cpu {
+# cpu.shares = 1000;
+# }
+#}
#
-
-group ca1 {
- perm {
- task {
- uid = root;
- gid = root;
- }
- admin {
- uid = root;
- gid = root;
- }
- }
-
- cpu {
- cpu.shares = 500;
- }
-
-}
-
-group db {
- perm {
- task {
- uid = balbir;
- gid = balbir;
- }
- admin {
- uid = balbir;
- gid = balbir;
- }
- }
-
- cpu {
- cpu.shares = 500;
- }
-
-}
-
-mount {
- cpu = /tmp/cpu;
- cpuacct = /tmp/cpuacct;
-}
+#group daemons/ftp {
+# perm {
+# task {
+# uid = root;
+# gid = ftpmaster;
+# }
+# admin {
+# uid = root;
+# gid = root;
+# }
+# }
+# cpu {
+# cpu.shares = 500;
+# }
+#}
+#
+#mount {
+# cpu = /mnt/cgroups/cpu;
+# cpuacct = /mnt/cgroups/cpuacct;
+#}
diff --git a/samples/cgred.conf b/samples/cgred.conf
index 14209e5..6acbf79 100644
--- a/samples/cgred.conf
+++ b/samples/cgred.conf
@@ -1,4 +1,4 @@
-# /etc/cgred.d/cgred.conf - CGroup Rules Engine Daemon configuration file
+# /etc/sysconfig/cgred.conf - CGroup Rules Engine Daemon configuration file
#
# The four options listed below (CONFIG_FILE, LOG_FILE, NODAEMON, LOG) are
# the only valid ones. Defining anything else in this file will cause the