]> git.proxmox.com Git - mirror_lxc.git/blame - doc/lxc-autostart.sgml.in
coverity: make sure not to close file handle twice
[mirror_lxc.git] / doc / lxc-autostart.sgml.in
CommitLineData
a6adab20
SG
1<!--
2
3lxc-autostart
4
5(C) Copyright 2013 Canonical Ltd.
6
7Authors:
8Stéphane Graber <stgraber@ubuntu.com>
9
10This library is free software; you can redistribute it and/or
11modify it under the terms of the GNU Lesser General Public
12License as published by the Free Software Foundation; either
13version 2.1 of the License, or (at your option) any later version.
14
15This library is distributed in the hope that it will be useful,
16but WITHOUT ANY WARRANTY; without even the implied warranty of
17MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18Lesser General Public License for more details.
19
20You should have received a copy of the GNU Lesser General Public
21License along with this library; if not, write to the Free Software
22Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23
24-->
25
26<!DOCTYPE refentry PUBLIC @docdtd@ [
27 <!ENTITY commonoptions SYSTEM "@builddir@/common_options.sgml">
28 <!ENTITY seealso SYSTEM "@builddir@/see_also.sgml">
29]>
30
31<refentry>
32 <docinfo><date>@LXC_GENERATE_DATE@</date></docinfo>
33 <refmeta>
34 <refentrytitle>lxc-autostart</refentrytitle>
35 <manvolnum>1</manvolnum>
36 </refmeta>
37
38 <refnamediv>
39 <refname>lxc-autostart</refname>
40
41 <refpurpose>
42 start/stop/kill auto-started containers
43 </refpurpose>
44 </refnamediv>
45
46 <refsynopsisdiv>
47 <cmdsynopsis>
48 <command>lxc-autostart</command>
49 <arg choice="opt">-k</arg>
50 <arg choice="opt">-L</arg>
51 <arg choice="opt">-r</arg>
52 <arg choice="opt">-s</arg>
53 <arg choice="opt">-a</arg>
54 <arg choice="opt">-g <replaceable>groups</replaceable></arg>
55 <arg choice="opt">-t <replaceable>timeout</replaceable></arg>
56 </cmdsynopsis>
57 </refsynopsisdiv>
58
59 <refsect1>
60 <title>Description</title>
61
62 <para>
63 <command>lxc-autostart</command> processes containers
64 with lxc.start.auto set. It lets the user start, shutdown,
65 kill, restart containers in the right order, waiting the
66 right time. Supports filtering by lxc.group or just run
67 against all defined containers. It can also be used by
68 external tools in list mode where no action will be performed
69 and the list of affected containers (and if relevant, delays)
70 will be shown.
71 </para>
72
73 <para>
74 The <optional>-r</optional>, <optional>-s</optional>
75 and <optional>-k</optional> options specify the action to perform.
76 If none is specified, then the containers will be started.
77 <optional>-a</optional> and <optional>-g</optional> are used to
78 specify which containers will be affected. By default only
79 containers without a lxc.group set will be affected.
80 <optional>-t TIMEOUT</optional> specifies the maximum amount
81 of time to wait for the container to complete the shutdown
82 or reboot.
83 </para>
84 </refsect1>
85
86 <refsect1>
87 <title>Options</title>
88 <variablelist>
89 <varlistentry>
90 <term>
91 <option>-r,--reboot </option>
92 </term>
93 <listitem>
94 <para>
95 Request a reboot of the container.
96 </para>
97 </listitem>
98 </varlistentry>
99
100 <varlistentry>
101 <term>
102 <option>-s,--shutdown </option>
103 </term>
104 <listitem>
105 <para>
106 Only request a clean shutdown, do not kill the
107 container tasks if the clean shutdown fails.
108 </para>
109 </listitem>
110 </varlistentry>
111
112 <varlistentry>
113 <term>
114 <option>-k,--kill </option>
115 </term>
116 <listitem>
117 <para>
118 Rather than requesting a clean shutdown of the
119 container, explicitly kill all tasks in the container.
120 </para>
121 </listitem>
122 </varlistentry>
123
124 <varlistentry>
125 <term>
126 <option>-L,--list </option>
127 </term>
128 <listitem>
129 <para>
130 Rather than performing the action, just print
131 the container name.
132 </para>
133 </listitem>
134 </varlistentry>
135
136 <varlistentry>
137 <term>
138 <option>-t,--timeout <replaceable>TIMEOUT</replaceable></option>
139 </term>
140 <listitem>
141 <para>
142 Wait TIMEOUT seconds before hard-stopping the
143 container of (in the reboot case) returning failure.
144 </para>
145 </listitem>
146 </varlistentry>
147 </variablelist>
148 </refsect1>
149
150 &seealso;
151
152 <refsect1>
153 <title>Author</title>
154 <para>Stéphane Graber <email>stgraber@ubuntu.com</email></para>
155 </refsect1>
156</refentry>
157
158<!-- Keep this comment at the end of the file
159Local variables:
160mode: sgml
161sgml-omittag:t
162sgml-shorttag:t
163sgml-minimize-attributes:nil
164sgml-always-quote-attributes:t
165sgml-indent-step:2
166sgml-indent-data:t
167sgml-parent-document:nil
168sgml-default-dtd-file:nil
169sgml-exposed-tags:nil
170sgml-local-catalogs:nil
171sgml-local-ecat-files:nil
172End:
173-->