]> git.proxmox.com Git - mirror_lxc.git/blob - doc/lxc-ps.sgml.in
add manpages for lxc-user-nic
[mirror_lxc.git] / doc / lxc-ps.sgml.in
1
2 <!--
3
4 lxc: linux Container library
5
6 (C) Copyright IBM Corp. 2007, 2008
7
8 Authors:
9 Daniel Lezcano <daniel.lezcano at free.fr>
10
11 This library is free software; you can redistribute it and/or
12 modify it under the terms of the GNU Lesser General Public
13 License as published by the Free Software Foundation; either
14 version 2.1 of the License, or (at your option) any later version.
15
16 This library is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 Lesser General Public License for more details.
20
21 You should have received a copy of the GNU Lesser General Public
22 License along with this library; if not, write to the Free Software
23 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
24
25 -->
26
27 <!DOCTYPE refentry PUBLIC @docdtd@ [
28
29 <!ENTITY seealso SYSTEM "@builddir@/see_also.sgml">
30 ]>
31
32 <refentry>
33
34 <docinfo><date>@LXC_GENERATE_DATE@</date></docinfo>
35
36 <refmeta>
37 <refentrytitle>lxc-ps</refentrytitle>
38 <manvolnum>1</manvolnum>
39 </refmeta>
40
41 <refnamediv>
42 <refname>lxc-ps</refname>
43
44 <refpurpose>
45 list the processes belonging to a specific container.
46 </refpurpose>
47 </refnamediv>
48
49 <refsynopsisdiv>
50 <cmdsynopsis>
51 <command>lxc-ps</command>
52 <arg choice="opt">--name <replaceable>name</replaceable></arg>
53 <arg choice="opt">--lxc</arg>
54 <arg choice="opt">--host</arg>
55 <arg choice="opt">-- <replaceable>ps options</replaceable></arg>
56 </cmdsynopsis>
57 </refsynopsisdiv>
58
59 <refsect1>
60 <title>Description</title>
61 <para>
62 <command>lxc-ps</command> is a wrapper to the ps command
63 to report the name of lxc container associated
64 to reported processes.
65 </para>
66 <para>
67 The cgroup fs must be mounted before container creation,
68 to be able to have <command>lxc-ps</command> to find
69 the container associated to processes.
70 </para>
71 <para>
72 The additional specified <replaceable>ps options</replaceable> must not
73 remove the default ps header and the pid information,
74 to be able to have the <command>lxc-ps</command> to find
75 the container associated to processes.
76 </para>
77 </refsect1>
78
79 <refsect1>
80 <title>Options</title>
81 <variablelist>
82
83 <varlistentry>
84 <term>
85 <option>-n, --name <replaceable>name</replaceable></option>
86 </term>
87 <listitem>
88 <para>
89 specify the container <replaceable>name</replaceable>
90 to limit the output to the processes belonging
91 to this container name.
92 </para>
93 </listitem>
94 </varlistentry>
95
96 <varlistentry>
97 <term>
98 <option>--lxc</option>
99 </term>
100 <listitem>
101 <para>
102 limit the output to the processes belonging
103 to all lxc containers.
104 </para>
105 </listitem>
106 </varlistentry>
107
108 <varlistentry>
109 <term>
110 <option>--host</option>
111 </term>
112 <listitem>
113 <para>
114 limit the output to the processes belonging
115 to the host.
116 </para>
117 </listitem>
118 </varlistentry>
119
120 <varlistentry>
121 <term>
122 <option><optional><replaceable>ps options</replaceable></optional></option>
123 </term>
124 <listitem>
125 <para>
126 The <command>ps</command> options must be separated
127 from <command>lxc-ps</command> options by
128 the <option>--</option> parameter.
129 </para>
130 </listitem>
131 </varlistentry>
132
133 </variablelist>
134
135 </refsect1>
136
137 <refsect1>
138 <title>Example</title>
139 <variablelist>
140 <varlistentry>
141 <term>lxc-ps --name foo -- --forest</term>
142 <listitem>
143 <para>
144 list all the processes belonging to container 'foo' and show
145 dependencies.
146 </para>
147 </listitem>
148 </varlistentry>
149 </variablelist>
150 </refsect1>
151
152 <refsect1>
153 <title>See Also</title>
154
155 <simpara>
156 <citerefentry>
157 <refentrytitle>ps</refentrytitle>
158 <manvolnum>1</manvolnum>
159 </citerefentry>,
160 </simpara>
161
162 </refsect1>
163
164 &seealso;
165
166 <refsect1>
167 <title>Author</title>
168 <para>Daniel Lezcano <email>daniel.lezcano@free.fr</email></para>
169 </refsect1>
170
171 </refentry>
172
173 <!-- Keep this comment at the end of the file
174 Local variables:
175 mode: sgml
176 sgml-omittag:t
177 sgml-shorttag:t
178 sgml-minimize-attributes:nil
179 sgml-always-quote-attributes:t
180 sgml-indent-step:2
181 sgml-indent-data:t
182 sgml-parent-document:nil
183 sgml-default-dtd-file:nil
184 sgml-exposed-tags:nil
185 sgml-local-catalogs:nil
186 sgml-local-ecat-files:nil
187 End:
188 -->