]> git.ipfire.org Git - thirdparty/systemd.git/blob - man/systemd-cgls.xml
cgls: add --machine/-M
[thirdparty/systemd.git] / man / systemd-cgls.xml
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
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
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
18 Lesser General Public License for more details.
19
20 You should have received a copy of the GNU Lesser General Public License
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</command>
53 <arg choice="opt" rep="repeat">OPTIONS</arg>
54 <arg choice="opt" rep="repeat">CGROUP</arg>
55 </cmdsynopsis>
56 </refsynopsisdiv>
57
58 <refsect1>
59 <title>Description</title>
60
61 <para><command>systemd-cgls</command> recursively
62 shows the contents of the selected Linux control group
63 hierarchy in a tree. If arguments are specified shows
64 all member processes of the specified control groups
65 plus all their subgroups and their members. The
66 control groups may either be specified by their full
67 file paths or are assumed in the systemd control group
68 hierarchy. If no argument is specified and the current
69 working directory is beneath the control group mount
70 point <filename>/sys/fs/cgroup</filename> shows the contents
71 of the control group the working directory refers
72 to. Otherwise the full systemd control group hierarchy
73 is shown.</para>
74
75 <para>By default empty control groups are not
76 shown.</para>
77 </refsect1>
78
79 <refsect1>
80 <title>Options</title>
81
82 <para>The following options are understood:</para>
83
84 <variablelist>
85 <varlistentry>
86 <term><option>-h</option></term>
87 <term><option>--help</option></term>
88
89 <listitem><para>Prints a short help
90 text and exits.</para></listitem>
91 </varlistentry>
92
93 <varlistentry>
94 <term><option>--version</option></term>
95
96 <listitem><para>Prints a short version
97 string and exits.</para></listitem>
98 </varlistentry>
99
100 <varlistentry>
101 <term><option>--no-pager</option></term>
102
103 <listitem><para>Do not pipe output into a
104 pager.</para></listitem>
105 </varlistentry>
106
107 <varlistentry>
108 <term><option>--all</option></term>
109
110 <listitem><para>Don't hide empty
111 control groups in the
112 output.</para></listitem>
113 </varlistentry>
114
115 <varlistentry>
116 <term><option>--full</option></term>
117
118 <listitem><para>Do not ellipsize cgroup
119 members.</para>
120 </listitem>
121 </varlistentry>
122
123 <varlistentry>
124 <term><option>-k</option></term>
125
126 <listitem><para>Include kernel
127 threads in output.</para></listitem>
128 </varlistentry>
129
130 <varlistentry>
131 <term><option>-m <replaceable>MACHINE</replaceable></option></term>
132 <term><option>--machine=<replaceable>MACHINE</replaceable></option></term>
133
134 <listitem><para>Limit cgroups shown to
135 the part corresponding to the
136 container <replaceable>MACHINE</replaceable>.
137 </para></listitem>
138 </varlistentry>
139
140 </variablelist>
141
142 </refsect1>
143
144 <refsect1>
145 <title>Exit status</title>
146
147 <para>On success 0 is returned, a non-zero failure
148 code otherwise.</para>
149 </refsect1>
150
151 <refsect1>
152 <title>See Also</title>
153 <para>
154 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
155 <citerefentry><refentrytitle>systemctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
156 <citerefentry><refentrytitle>systemd-cgtop</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
157 <citerefentry><refentrytitle>systemd-nspawn</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
158 <citerefentry><refentrytitle>ps</refentrytitle><manvolnum>1</manvolnum></citerefentry>
159 </para>
160 </refsect1>
161
162 </refentry>