From 20bbfbdfd8777de4cc1c83a9d583ace36c6f2cd2 Mon Sep 17 00:00:00 2001 From: Ken'ichi Ohmichi Date: Fri, 26 Jun 2009 14:51:46 +0900 Subject: Add the description about a new rule. Hi, Changelog of v6: ================ * No change. Changelog of v5: ================ * New patch. Description: ============ This patch add the description about a new rule to both the manpage of cgrules.conf and the sample of cgrules.conf. Thanks Ken'ichi Ohmichi Signed-off-by: Ken'ichi Ohmichi Signed-off-by: Dhaval Giani --- samples/cgrules.conf | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'samples') diff --git a/samples/cgrules.conf b/samples/cgrules.conf index 1844633..48495ee 100644 --- a/samples/cgrules.conf +++ b/samples/cgrules.conf @@ -1,11 +1,12 @@ # /etc/cgrules.conf # -#Each line describes a rule for a user in the form: +#Each line describes a rule for a user in the forms: # -# +# +#: # #Where: -# can be: +# can be: # - an user name # - a group name, with @group syntax # - the wildcard *, for any user or group. @@ -13,6 +14,10 @@ # multiline rules where different cgroups need to be specified # for various hierarchies for a single user. # +# is optional and it can be: +# - a process name +# - a full command path of a process +# # can be: # - comma separated controller names (no spaces) # - * (for all mounted controllers) @@ -21,7 +26,7 @@ # - path with-in the controller hierarchy (ex. pgrp1/gid1/uid1) # # Note: -# - It currently has rules only based on uids and gids. +# - It currently has rules based on uids, gids and process name. # # - Don't put overlapping rules. First rule which matches the criteria # will be executed. @@ -37,6 +42,7 @@ # # #john cpu usergroup/faculty/john/ +#john:cp cpu usergroup/faculty/john/cp #@student cpu,memory usergroup/student/ #peter cpu test1/ #% memory test2/ -- cgit