User`s guide
Managing Resources 115
process if it is a daemon.
0x0002 |_0_|_0_|_0_|_0_|_0_|_0_|_1_|_0
_|
This bit, if set to 1,
indicates that the rule is
to be applied to the
process if it is not a
daemon.
0x0004 |_0_|_0_|_0_|_0_|_0_|_1_|_0_|_0
_|
This bit, if set to 1,
indicates that the rule is
to be applied to the
process during its forking
(i.e. on the fork() call).
0x0008 |_0_|_0_|_0_|_0_|_1_|_0_|_0_|_0
_|
This bit, if set to 1,
indicates that the rule is
to be applied to the
process during its
execution (i.e. on the
exec() call).
0x0010 |_0_|_0_|_0_|_1_|_0_|_0_|_0_|_0
_|
This bit, if set to 1,
indicates that the name of
the process is to be
checked before applying
the rule.
Let us take as an example the following rule from the /etc/vzslm.d/default.conf file
"httpd" 0000001c -1 2
and examine what processes are affected by this rule and in what way. The flags in this rule
(0000001c or |_0_|_0_|_0_|_1_|_1_|_1_|_0_|_0_| in the binary notation) involve
checking the name of the process (the fifth bit from the right equals 1) and, if this name is
httpd, moving the process to the 'httpd' group (destination_subgroup = 2)
regardless of the group it originally belongs to (source_subgroup = -1) during the process
forking and execution (the third and forth bits from the right equal 1).
The following table lists all the rules present in the /etc/vzslm.d/default.conf file:
Rule Name Explanation
#1 "init" 00000018 -
1
9
If the process has the name of init, move it
to group 9 during the process execution
irrespective of the group it originally belongs
to. As there is no default group numbered 9, it
will be created when this rule is first applied.
#2 "httpd" 0000001c -
1
2
If the process has the name of httpd, move it
to group 2 during the process forking and
execution irrespective of the group it originally
belongs to.
#3 "httpsd" 0000001c -
1
If the process has the name of httpsd, move
it to group 2 during the process forking and










