]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/systemd-cgls.xml
man: xinclude --help/--version/--no-pager
[thirdparty/systemd.git] / man / systemd-cgls.xml
CommitLineData
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
dfdebb1b
ZJS
24<refentry id="systemd-cgls"
25 xmlns:xi="http://www.w3.org/2001/XInclude">
fa776d8e
LP
26
27 <refentryinfo>
28 <title>systemd-cgls</title>
29 <productname>systemd</productname>
30
31 <authorgroup>
32 <author>
33 <contrib>Developer</contrib>
34 <firstname>Lennart</firstname>
35 <surname>Poettering</surname>
36 <email>lennart@poettering.net</email>
37 </author>
38 </authorgroup>
39 </refentryinfo>
40
41 <refmeta>
42 <refentrytitle>systemd-cgls</refentrytitle>
43 <manvolnum>1</manvolnum>
44 </refmeta>
45
46 <refnamediv>
47 <refname>systemd-cgls</refname>
48 <refpurpose>Recursively show control group contents</refpurpose>
49 </refnamediv>
50
51 <refsynopsisdiv>
52 <cmdsynopsis>
38158b92
ZJS
53 <command>systemd-cgls</command>
54 <arg choice="opt" rep="repeat">OPTIONS</arg>
55 <arg choice="opt" rep="repeat">CGROUP</arg>
fa776d8e
LP
56 </cmdsynopsis>
57 </refsynopsisdiv>
58
59 <refsect1>
60 <title>Description</title>
61
62 <para><command>systemd-cgls</command> recursively
63 shows the contents of the selected Linux control group
79640424 64 hierarchy in a tree. If arguments are specified, shows
fa776d8e
LP
65 all member processes of the specified control groups
66 plus all their subgroups and their members. The
67 control groups may either be specified by their full
68 file paths or are assumed in the systemd control group
69 hierarchy. If no argument is specified and the current
70 working directory is beneath the control group mount
79640424 71 point <filename>/sys/fs/cgroup</filename>, shows the contents
fa776d8e 72 of the control group the working directory refers
79640424 73 to. Otherwise, the full systemd control group hierarchy
fa776d8e 74 is shown.</para>
c3175a7f 75
79640424 76 <para>By default, empty control groups are not
c3175a7f 77 shown.</para>
fa776d8e
LP
78 </refsect1>
79
80 <refsect1>
81 <title>Options</title>
82
83 <para>The following options are understood:</para>
84
85 <variablelist>
c3175a7f
LP
86 <varlistentry>
87 <term><option>--all</option></term>
88
6b4991cf 89 <listitem><para>Do not hide empty
0e25e94e 90 control groups in the
bb31a4ac 91 output.</para></listitem>
0e25e94e 92 </varlistentry>
c3175a7f 93
9bdbc2e2 94 <varlistentry>
98a6e132 95 <term><option>-l</option></term>
9bdbc2e2
LN
96 <term><option>--full</option></term>
97
3fde5f30
LP
98 <listitem><para>Do not ellipsize
99 process tree members.</para>
9bdbc2e2
LN
100 </listitem>
101 </varlistentry>
102
1e5678d0
LP
103 <varlistentry>
104 <term><option>-k</option></term>
105
caa94887 106 <listitem><para>Include kernel
1e5678d0
LP
107 threads in output.</para></listitem>
108 </varlistentry>
109
38158b92 110 <varlistentry>
a8053f19 111 <term><option>-M <replaceable>MACHINE</replaceable></option></term>
38158b92
ZJS
112 <term><option>--machine=<replaceable>MACHINE</replaceable></option></term>
113
3fde5f30 114 <listitem><para>Limit control groups shown to
38158b92
ZJS
115 the part corresponding to the
116 container <replaceable>MACHINE</replaceable>.
117 </para></listitem>
118 </varlistentry>
119
dfdebb1b
ZJS
120 <xi:include href="standard-options.xml" xpointer="help" />
121 <xi:include href="standard-options.xml" xpointer="version" />
122 <xi:include href="standard-options.xml" xpointer="no-pager" />
fa776d8e
LP
123 </variablelist>
124
125 </refsect1>
126
127 <refsect1>
128 <title>Exit status</title>
129
b040723e 130 <para>On success, 0 is returned, a non-zero failure
fa776d8e
LP
131 code otherwise.</para>
132 </refsect1>
133
134 <refsect1>
135 <title>See Also</title>
136 <para>
137 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
caa94887
LP
138 <citerefentry><refentrytitle>systemctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
139 <citerefentry><refentrytitle>systemd-cgtop</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
38158b92 140 <citerefentry><refentrytitle>systemd-nspawn</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
caa94887 141 <citerefentry><refentrytitle>ps</refentrytitle><manvolnum>1</manvolnum></citerefentry>
fa776d8e
LP
142 </para>
143 </refsect1>
144
145</refentry>