1
2CGCLEAR(1) libcgroup Manual CGCLEAR(1)
3
4
5
7 cgclear - unload the cgroup filesystem
8
9
11 cgclear [-e] [-l <filename>] [-L <directory>] [...]
12
13
15 Without parameters, this command moves all the tasks inside the various
16 cgroups to the root cgroup, deletes all the cgroups and finally
17 unmounts the cgroup filesystem from the system.
18
19 If one or more config files are specified, only groups defined in the
20 config files are removed. The files are processed in reverse order,
21 i.e. the last file on command line is processed first, so cgclear can
22 have the same command line arguments as appropriate cgconfigparser.
23
24
25 -l, --load=<filename>
26 specifies the config file to read. This option can be used mul‐
27 tiple times and can be mixed with -L option.
28
29
30 -L, --load-directory=<directory>
31 specifies the directory, which is searched for configuration
32 files. All files in this directory will be processed in alpha‐
33 betical order as they were specified by -l option. This option
34 can be used multiple times and can be mixed with -l option.
35
36
37 -e specifies that only empty groups should be removed. If a group
38 defined in a config file has tasks inside or has a subgroup, it
39 won't be removed. This option works only with -l or -L options.
40
41
43 CGROUP_LOGLEVEL
44 controls verbosity of the tool. Allowed values are DEBUG, INFO,
45 WARNING or ERROR.
46
47
49 /etc/cgconfig.conf
50 default templates file
51
52 /etc/cgconfig.d/
53 default templates files directory
54
55
56
58 cgclear
59 unload the whole cgroup filesystem
60
61
62 cgclear -l /etc/cgconfig.conf
63 unload a subsystem of cgroup filesystem based on /etc/cgcon‐
64 fig.conf definition.
65
66
68 cgconfigparser(1), cgconfig.conf(5)
69
70
71
72Linux 2009-10-23 CGCLEAR(1)