diff --git a/doc/lxc-ps.sgml.in b/doc/lxc-ps.sgml.in index 737457231..6c5326530 100644 --- a/doc/lxc-ps.sgml.in +++ b/doc/lxc-ps.sgml.in @@ -48,7 +48,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - lxc-ps -n name + lxc-ps --name name + --lxc ps option @@ -57,8 +58,20 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Description - lxc-ps list the processes belonging to a - specific container. + lxc-ps is a wrapper tp ps command + to report the name of lxc container associated + to reported processes. + + + The cgroup fs must be mounted before container creation, + to be able to have lxc-ps to find + the container associated to processes. + + + The additionnal specified ps options must not + remove the default ps header and the pid information, + to be able to have the lxc-ps to find + the container associated to processes. @@ -68,12 +81,25 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - + - specify the container name to - list the processes. + specify the container NAME + to limit the output to the processes belonging + to this container name. + + + + + + + + + + + limit the output to the processes belonging + to all lxc containers. @@ -95,10 +121,10 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - Examples + Example - lxc-ps -n foo --forest + lxc-ps --name foo --forest list all the processes belonging to container 'foo' and show @@ -106,16 +132,6 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - - - lxc-ps -n foo -o pid= - - - list all the containers and display the list in one column. - - - -