3 lxc: linux Container library
5 (C) Copyright IBM Corp. 2007, 2008
8 Daniel Lezcano <dlezcano at fr.ibm.com>
10 This library is free software; you can redistribute it and/or
11 modify it under the terms of the GNU Lesser General Public
12 License as published by the Free Software Foundation; either
13 version 2.1 of the License, or (at your option) any later version.
15 This library is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 Lesser General Public License for more details.
20 You should have received a copy of the GNU Lesser General Public
21 License along with this library; if not, write to the Free Software
22 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 <!DOCTYPE refentry PUBLIC "-//Davenport//DTD DocBook V3.0//EN" [
28 <!ENTITY seealso SYSTEM "@builddir@/see_also.sgml">
33 <docinfo><date>@LXC_GENERATE_DATE@</date></docinfo>
36 <refentrytitle>lxc-cgroup</refentrytitle>
37 <manvolnum>1</manvolnum>
41 <refname>lxc-cgroup</refname>
44 manage the control group associated with a container
50 <command>lxc-start <replaceable>-n name</replaceable>
51 <replaceable>subsystem</replaceable> <optional>value</optional>
57 <title>Description</title>
60 <command>lxc-cgroup</command> get or set value from the control
61 group associated with the
62 container <replaceable>name</replaceable>. If
63 no <optional>value</optional> is specified, the value of
64 the <replaceable>subsystem</replaceable> is displayed, otherwise
65 it is set. The <command>lxc-cgroup</command> does not assume the
66 correctness of the <replaceable>subsystem</replaceable> name, it
67 is up to the user to specify the
68 right <replaceable>subsystem</replaceable> name.
74 <title>Options</title>
79 <option>-n <replaceable>name</replaceable></option>
83 Specify the container name associated with a control group.
90 <option><replaceable>subsystem</replaceable></option>
94 Specify the subsystem control group name.
101 <option><optional>value</optional></option>
105 Specify the subsystem control group value to be set.
115 <title>Examples</title>
118 <term>lxc-cgroup -n foo devices.list</term>
121 display the allowed devices to be used.
127 <term>lxc-cgroup -n foo cpuset.cpus "0,3"</term>
130 assign the processors 0 and 3 to the container.
139 <title>Diagnostic</title>
144 <term>The container was not found</term>
147 The container is not running.
160 <title>Author</title>
161 <para>Daniel Lezcano <email>daniel.lezcano@free.fr</email></para>
166 <!-- Keep this comment at the end of the file
171 sgml-minimize-attributes:nil
172 sgml-always-quote-attributes:t
175 sgml-parent-document:nil
176 sgml-default-dtd-file:nil
177 sgml-exposed-tags:nil
178 sgml-local-catalogs:nil
179 sgml-local-ecat-files:nil