Update cgconfig and cgclear man pages with new parameters.

Signed-off-by: Jan Safranek <jsafr...@redhat.com>
---

 doc/man/cgclear.1        |   28 +++++++++++++++++++++++++---
 doc/man/cgconfigparser.8 |   12 +++++++++---
 2 files changed, 34 insertions(+), 6 deletions(-)

diff --git a/doc/man/cgclear.1 b/doc/man/cgclear.1
index d07e8bb..0a3ed91 100644
--- a/doc/man/cgclear.1
+++ b/doc/man/cgclear.1
@@ -6,14 +6,36 @@
 cgclear \- unload the cgroup filesystem
 
 .SH SYNOPSIS
-\fBcgclear\fR
+\fBcgclear\fR [\fB-e\fR] [\fB-l\fR <\fIfilename\fR>] [\fB-L\fR 
<\fIdirectory\fR>] [...]
 
 .SH DESCRIPTION
 
-This command moves all the tasks inside the various cgroups
+Without parameters, this command moves all the tasks inside the various cgroups
 to the root cgroup, deletes all the cgroups and finally
 unmounts the cgroup filesystem from the system.
 
+If one or more config files are specified, only groups defined in the config
+files are removed. The files are processed in reverse order, i.e. the last
+file on command line is processed first, so \fBcgclear\fR can have the same
+command line arguments as appropriate \fBcgconfigparser\fR.
+
+.TP
+.B -l, --load=<filename>
+specifies the config file to read. This option can be used multiple times and
+can be mixed with \fB-L\fR option.
+
+.TP
+.B -L, --load-directory=<directory>
+specifies the directory, which is searched for configuration files. All files
+in this directory will be processed in alphabetical order as they were 
specified
+by \fB-l\fR option. This option can be used multiple times and
+can be mixed with \fB-l\fR option.
+
+.TP
+.B -e
+specifies that only empty groups should be removed. If a group defined in a
+config file has tasks inside or has a subgroup, it won't be removed. This
+option works only with \fB-l\fR or \fB-L\fR options.
+
 .SH SEE ALSO
 cgconfigparser(1)
-
diff --git a/doc/man/cgconfigparser.8 b/doc/man/cgconfigparser.8
index c850bc1..fdd6956 100644
--- a/doc/man/cgconfigparser.8
+++ b/doc/man/cgconfigparser.8
@@ -7,11 +7,11 @@
 cgconfigparser \- setup control group file system
 
 .SH SYNOPSIS
-\fBcgconfigparser\fR [\fB-h\fR | \fB-l\fR \fI<filename>\fR]
+\fBcgconfigparser\fR [\fB-h\fR] [\fB-l\fR \fI<filename>\fR] [\fB-L\fR 
\fI<directory>\fR] [...]
 
 .SH OPTIONS
 .TP
-.B -h|--help
+.B -h, --help
 Displays help.
 .TP
 .B -l, --load=FILE
@@ -20,7 +20,13 @@ Sets up the control group file system
 defined by the configuration file and mounts
 mount points defined by the configuration file.
 The format of the file is described in
-\fBcgconfig.conf\fR.
+\fBcgconfig.conf\fR. This option can be used multiple times and can be mixed
+with \fB-L\fR option.
+.TP
+.B -L, --load-directory=DIR
+Finds all files in given directory and parses them in alphabetical order
+like they were specified by \fB-l\fR option. This option can be used
+multiple times and can be mixed with \fB-l\fR option.
 .LP
 
 .SH SEE ALSO


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Libcg-devel mailing list
Libcg-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to