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)
-
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
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