From: Ivana Hutarova Varekova Date: Mon, 24 Sep 2012 06:59:53 +0000 (+0200) Subject: cgrules.conf: no documentation inside config file X-Git-Tag: v0.41~94 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe63920aa89b66822e5a829c2403213e63f21364;p=thirdparty%2Flibcgroup.git cgrules.conf: no documentation inside config file cgrules.conf: don't put incomplete documentation inside the config file. (There is missing the description of expandable strings in destination column.) The link to manual page is better. Signed-off-by: Ivana Hutarova Varekova Acked-By: Jan Safranek --- diff --git a/samples/cgrules.conf b/samples/cgrules.conf index 48495eef..86300b3d 100644 --- a/samples/cgrules.conf +++ b/samples/cgrules.conf @@ -1,51 +1,10 @@ # /etc/cgrules.conf -# -#Each line describes a rule for a user in the forms: -# -# -#: -# -#Where: -# can be: -# - an user name -# - a group name, with @group syntax -# - the wildcard *, for any user or group. -# - The %, which is equivalent to "ditto". This is useful for -# 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) -# -# can be: -# - path with-in the controller hierarchy (ex. pgrp1/gid1/uid1) -# -# Note: -# - 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. -# -# - Multiline rules can be specified for specifying different cgroups -# for multiple hierarchies. In the example below, user "peter" has -# specified 2 line rule. First line says put peter's task in test1/ -# dir for "cpu" controller and second line says put peter's tasks in -# test2/ dir for memory controller. Make a note of "%" sign in second line. -# This is an indication that it is continuation of previous rule. -# -# -# -# -#john cpu usergroup/faculty/john/ -#john:cp cpu usergroup/faculty/john/cp -#@student cpu,memory usergroup/student/ -#peter cpu test1/ -#% memory test2/ -#@root * admingroup/ -#* * default/ +#The format of this file is described in cgrules.conf(5) +#manual page. +# +# Example: +# +#@student cpu,memory usergroup/student/ +#peter cpu test1/ +#% memory test2/ # End of file