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