4 lxc: linux Container library
6 (C) Copyright IBM Corp. 2007, 2008
9 Daniel Lezcano <dlezcano at fr.ibm.com>
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.
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.
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27 <!DOCTYPE refentry PUBLIC "-//Davenport//DTD DocBook V3.0//EN" [
29 <!ENTITY seealso SYSTEM "@builddir@/see_also.sgml">
34 <docinfo><date>@LXC_GENERATE_DATE@</date></docinfo>
37 <refentrytitle>lxc-ps</refentrytitle>
38 <manvolnum>1</manvolnum>
42 <refname>lxc-ps</refname>
45 list the processes belonging to a specific container.
51 <command>lxc-ps</command>
52 <arg choice="opt">--name <replaceable>name</replaceable></arg>
53 <arg choice="opt">--lxc</arg>
54 <arg choice="opt">-- ps option</arg>
59 <title>Description</title>
61 <command>lxc-ps</command> is a wrapper tp ps command
62 to report the name of lxc container associated
63 to reported processes.
66 The cgroup fs must be mounted before container creation,
67 to be able to have <command>lxc-ps</command> to find
68 the container associated to processes.
71 The additionnal specified ps options must not
72 remove the default ps header and the pid information,
73 to be able to have the <command>lxc-ps</command> to find
74 the container associated to processes.
79 <title>Options</title>
84 <option>-n, --name <replaceable>name</replaceable></option>
88 specify the container <replaceable>name</replaceable>
89 to limit the output to the processes belonging
90 to this container name.
97 <option>--lxc</option>
101 limit the output to the processes belonging
102 to all lxc containers.
109 <option><optional>ps options</optional></option>
113 The <command>ps</command> options must be separated
114 from <command>lxc-ps</command> options by
115 the <option>--</option> parameter.
125 <title>Example</title>
128 <term>lxc-ps --name foo -- --forest</term>
131 list all the processes belonging to container 'foo' and show
140 <title>See Also</title>
144 <refentrytitle>ps</refentrytitle>
145 <manvolnum>1</manvolnum>
154 <title>Author</title>
155 <para>Daniel Lezcano <email>daniel.lezcano@free.fr</email></para>
160 <!-- Keep this comment at the end of the file
165 sgml-minimize-attributes:nil
166 sgml-always-quote-attributes:t
169 sgml-parent-document:nil
170 sgml-default-dtd-file:nil
171 sgml-exposed-tags:nil
172 sgml-local-catalogs:nil
173 sgml-local-ecat-files:nil