77 lines
2.2 KiB
Plaintext
77 lines
2.2 KiB
Plaintext
# /etc/cgrules.conf
|
|
#
|
|
#Each line describes a rule for a user in the forms:
|
|
#
|
|
#<user> <controllers> <destination>
|
|
#<user>:<process name> <controllers> <destination>
|
|
#
|
|
#Where:
|
|
# <user> 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.
|
|
#
|
|
# <process name> is optional and it can be:
|
|
# - a process name
|
|
# - a full command path of a process
|
|
#
|
|
# <controller> can be:
|
|
# - comma separated controller names (no spaces)
|
|
# - * (for all mounted controllers)
|
|
#
|
|
# <destination> 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.
|
|
#
|
|
#
|
|
#<user> <controllers> <destination>
|
|
#
|
|
#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/
|
|
# End of file
|
|
bin * d5000_limits
|
|
daemon * d5000_limits
|
|
sys * d5000_limits
|
|
audadmin * d5000_limits
|
|
#sysadmin * d5000_limits
|
|
secadmin * d5000_limits
|
|
netadmin * d5000_limits
|
|
nobody * d5000_limits
|
|
mail * d5000_limits
|
|
postfix * d5000_limits
|
|
dhcp * d5000_limits
|
|
named * d5000_limits
|
|
httpd * d5000_limits
|
|
squid * d5000_limits
|
|
samba * d5000_limits
|
|
#sshd * d5000_limits
|
|
nfs * d5000_limits
|
|
mysql * d5000_limits
|
|
snort * d5000_limits
|
|
ftp * d5000_limits
|
|
cron * d5000_limits
|
|
messagebus * d5000_limits
|
|
mfs * d5000_limits
|
|
#root:inetd * d5000_limits
|
|
d5000 * d5000_limits
|