summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorKen'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp>2009-06-26 14:51:20 +0900
committerDhaval Giani <dhaval@linux.vnet.ibm.com>2009-06-29 16:51:11 +0530
commit581ce3c1ebbfdf0026de7bee75bd928be2a39982 (patch)
tree4d4b92749c1690ade4e2e9174998605f28867cff /doc
parent1c29610af69bf3bb0e088ed3eca770589849b0da (diff)
downloadlibcg-581ce3c1ebbfdf0026de7bee75bd928be2a39982.tar.gz
libcg-581ce3c1ebbfdf0026de7bee75bd928be2a39982.tar.xz
libcg-581ce3c1ebbfdf0026de7bee75bd928be2a39982.zip
Apply a new rule to 'cgexec' command.
Hi, Changelog of v6: ================ * No change. Changelog of v5: ================ * Add the description of a new option "--sticky". Changelog of v4: ================ * Add a new option "--sticky" so that cgrulesengd daemon does not change the children's cgroups which is executed by 'cgexec' command. Changelog of v3: ================ * Set a SETUID to "cgexec" command file. * An euid is changed to the executing user from a root user. Changelog of v2: ================ * New patch. Description: ============ This patch applies a new rule to 'cgexec' command. cgroup_register_unchanged_process() is called so that cgrulesengd daemon does not change the cgroup of a process, which is executed by 'cgexec' command. And cgroup_change_cgroup_flags() is called for applying a new rule. Thanks Ken'ichi Ohmichi Signed-off-by: Ken'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp> Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/man/cgexec.111
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/man/cgexec.1 b/doc/man/cgexec.1
index ca963f0..2ab6fd6 100644
--- a/doc/man/cgexec.1
+++ b/doc/man/cgexec.1
@@ -7,7 +7,7 @@
cgexec \- run the task in given control groups
.SH SYNOPSIS
-\fBcgexec\fR [\fB-g\fR <\fIcontrollers>:<path\fR>] \fBcommand\fR [\fIarguments\fR]
+\fBcgexec\fR [\fB-g\fR <\fIcontrollers>:<path\fR>] [--sticky] \fBcommand\fR [\fIarguments\fR]
.SH DESCRIPTION
The \fBcgexec\fR
@@ -31,6 +31,15 @@ If this option is not used then
\fBcgexec\fR will automatically place the task to the right
cgroup based on \fB/etc/cgrules.conf\fR.
+.TP
+.B --sticky
+If running the task \fBcommand\fR with this option, the daemon of
+service cgred (cgrulesengd process) does not change both the task
+of the \fBcommand\fR and the children tasks. Without this option,
+the daemon does not change the task of the \fBcommand\fR but it
+changes the children tasks to the right cgroup based on
+\fB/etc/cgrules.conf\fR automatically.
+
.LP
.SH EXAMPLES