diff --git a/configure.in b/configure.in index 1859c9057..a4d22c561 100644 --- a/configure.in +++ b/configure.in @@ -56,6 +56,7 @@ AC_CONFIG_FILES([ doc/lxc-wait.sgml doc/lxc-ls.sgml doc/lxc-ps.sgml + doc/lxc-cgroup.sgml src/Makefile src/lxc/Makefile diff --git a/doc/Makefile.am b/doc/Makefile.am index 451549b6e..1cb0a455d 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -10,7 +10,8 @@ man_MANS = \ lxc-monitor.1 \ lxc-wait.1 \ lxc-ls.1 \ - lxc-ps.1 + lxc-ps.1 \ + lxc-cgroup.1 %.1 : %.sgml diff --git a/doc/lxc-cgroup.sgml.in b/doc/lxc-cgroup.sgml.in new file mode 100644 index 000000000..47ab8d2c5 --- /dev/null +++ b/doc/lxc-cgroup.sgml.in @@ -0,0 +1,188 @@ + + + + + + + @LXC_GENERATE_DATE@ + + + lxc-cgroup + 1 + + + + lxc-cgroup + + + manage the control group associated with a container + + + + + + lxc-start -n name + subsystem value + + + + + + Description + + + lxc-cgroup get or set value from the control + group associated with the + container name. If + no value is specified, the value of + the subsystem is displayed, otherwise + it is set. The lxc-cgroup does not assume the + correctness of the subsystem name, it + is up to the user to specify the + right subsystem name. + + + + + + Options + + + + + + + + + Specify the container name associated with a control group. + + + + + + + + + + + Specify the subsystem control group name. + + + + + + + + + + + Specify the subsystem control group value to be set. + + + + + + + + + + Examples + + + lxc-cgroup -n foo devices.list + + + display the allowed devices to be used. + + + + + + lxc-cgroup -n foo cpuset.cpus "0,3" + + + assign the processors 0 and 3 to the container. + + + + + + + + + Diagnostic + + + + + The container was not found + + + The container is not running. + + + + + + + + + + + See Also + + + + lxc.conf + 5 + , + + + + + + Author + Daniel Lezcano daniel.lezcano@free.fr + + + + +