]>
Commit | Line | Data |
---|---|---|
fa776d8e LP |
1 | <?xml version='1.0'?> <!--*-nxml-*--> |
2 | <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" | |
3 | "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> | |
4 | ||
5 | <!-- | |
6 | This file is part of systemd. | |
7 | ||
8 | Copyright 2010 Lennart Poettering | |
9 | ||
10 | systemd is free software; you can redistribute it and/or modify it | |
5430f7f2 LP |
11 | under the terms of the GNU Lesser General Public License as published by |
12 | the Free Software Foundation; either version 2.1 of the License, or | |
fa776d8e LP |
13 | (at your option) any later version. |
14 | ||
15 | systemd is distributed in the hope that it will be useful, but | |
16 | WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
5430f7f2 | 18 | Lesser General Public License for more details. |
fa776d8e | 19 | |
5430f7f2 | 20 | You should have received a copy of the GNU Lesser General Public License |
fa776d8e LP |
21 | along with systemd; If not, see <http://www.gnu.org/licenses/>. |
22 | --> | |
23 | ||
24 | <refentry id="systemd-cgls"> | |
25 | ||
26 | <refentryinfo> | |
27 | <title>systemd-cgls</title> | |
28 | <productname>systemd</productname> | |
29 | ||
30 | <authorgroup> | |
31 | <author> | |
32 | <contrib>Developer</contrib> | |
33 | <firstname>Lennart</firstname> | |
34 | <surname>Poettering</surname> | |
35 | <email>lennart@poettering.net</email> | |
36 | </author> | |
37 | </authorgroup> | |
38 | </refentryinfo> | |
39 | ||
40 | <refmeta> | |
41 | <refentrytitle>systemd-cgls</refentrytitle> | |
42 | <manvolnum>1</manvolnum> | |
43 | </refmeta> | |
44 | ||
45 | <refnamediv> | |
46 | <refname>systemd-cgls</refname> | |
47 | <refpurpose>Recursively show control group contents</refpurpose> | |
48 | </refnamediv> | |
49 | ||
50 | <refsynopsisdiv> | |
51 | <cmdsynopsis> | |
52 | <command>systemd-cgls <arg choice="opt" rep="repeat">OPTIONS</arg> <arg choice="opt" rep="repeat">CGROUP</arg></command> | |
53 | </cmdsynopsis> | |
54 | </refsynopsisdiv> | |
55 | ||
56 | <refsect1> | |
57 | <title>Description</title> | |
58 | ||
59 | <para><command>systemd-cgls</command> recursively | |
60 | shows the contents of the selected Linux control group | |
61 | hierarchy in a tree. If arguments are specified shows | |
62 | all member processes of the specified control groups | |
63 | plus all their subgroups and their members. The | |
64 | control groups may either be specified by their full | |
65 | file paths or are assumed in the systemd control group | |
66 | hierarchy. If no argument is specified and the current | |
67 | working directory is beneath the control group mount | |
77d5f105 | 68 | point <filename>/sys/fs/cgroup</filename> shows the contents |
fa776d8e LP |
69 | of the control group the working directory refers |
70 | to. Otherwise the full systemd control group hierarchy | |
71 | is shown.</para> | |
c3175a7f LP |
72 | |
73 | <para>By default empty control cgroups are not | |
74 | shown.</para> | |
fa776d8e LP |
75 | </refsect1> |
76 | ||
77 | <refsect1> | |
78 | <title>Options</title> | |
79 | ||
80 | <para>The following options are understood:</para> | |
81 | ||
82 | <variablelist> | |
83 | <varlistentry> | |
caa94887 | 84 | <term><option>-h</option></term> |
fa776d8e LP |
85 | <term><option>--help</option></term> |
86 | ||
87 | <listitem><para>Prints a short help | |
88 | text and exits.</para></listitem> | |
89 | </varlistentry> | |
90 | ||
c3175a7f LP |
91 | <varlistentry> |
92 | <term><option>--version</option></term> | |
93 | ||
94 | <listitem><para>Prints a short version | |
95 | string and exits.</para></listitem> | |
96 | </varlistentry> | |
97 | ||
1e5678d0 LP |
98 | <varlistentry> |
99 | <term><option>--no-pager</option></term> | |
100 | ||
0e25e94e KS |
101 | <listitem><para>Do not pipe output into a |
102 | pager.</para></listitem> | |
103 | </varlistentry> | |
1e5678d0 | 104 | |
c3175a7f LP |
105 | <varlistentry> |
106 | <term><option>--all</option></term> | |
107 | ||
0e25e94e KS |
108 | <listitem><para>Don't hide empty |
109 | control groups in the | |
110 | outpout.</para></listitem> | |
111 | </varlistentry> | |
c3175a7f | 112 | |
1e5678d0 LP |
113 | <varlistentry> |
114 | <term><option>-k</option></term> | |
115 | ||
caa94887 | 116 | <listitem><para>Include kernel |
1e5678d0 LP |
117 | threads in output.</para></listitem> |
118 | </varlistentry> | |
119 | ||
fa776d8e LP |
120 | </variablelist> |
121 | ||
122 | </refsect1> | |
123 | ||
124 | <refsect1> | |
125 | <title>Exit status</title> | |
126 | ||
127 | <para>On success 0 is returned, a non-zero failure | |
128 | code otherwise.</para> | |
129 | </refsect1> | |
130 | ||
131 | <refsect1> | |
132 | <title>See Also</title> | |
133 | <para> | |
134 | <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>, | |
caa94887 LP |
135 | <citerefentry><refentrytitle>systemctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>, |
136 | <citerefentry><refentrytitle>systemd-cgtop</refentrytitle><manvolnum>1</manvolnum></citerefentry>, | |
137 | <citerefentry><refentrytitle>ps</refentrytitle><manvolnum>1</manvolnum></citerefentry> | |
fa776d8e LP |
138 | </para> |
139 | </refsect1> | |
140 | ||
141 | </refentry> |