]>
Commit | Line | Data |
---|---|---|
a6adab20 SG |
1 | <!-- |
2 | ||
3 | lxc-autostart | |
4 | ||
5 | (C) Copyright 2013 Canonical Ltd. | |
6 | ||
7 | Authors: | |
8 | Stéphane Graber <stgraber@ubuntu.com> | |
9 | ||
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. | |
14 | ||
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. | |
19 | ||
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., 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> | |
a771fe18 DE |
106 | Request a clean shutdown. If a |
107 | <optional>-t timeout</optional> greater than 0 is | |
108 | given and the container has not shut down within | |
109 | this period, it will be killed as with the | |
110 | <optional>-k kill</optional> option. | |
a6adab20 SG |
111 | </para> |
112 | </listitem> | |
113 | </varlistentry> | |
114 | ||
115 | <varlistentry> | |
116 | <term> | |
117 | <option>-k,--kill </option> | |
118 | </term> | |
119 | <listitem> | |
120 | <para> | |
121 | Rather than requesting a clean shutdown of the | |
122 | container, explicitly kill all tasks in the container. | |
123 | </para> | |
124 | </listitem> | |
125 | </varlistentry> | |
126 | ||
127 | <varlistentry> | |
128 | <term> | |
129 | <option>-L,--list </option> | |
130 | </term> | |
131 | <listitem> | |
132 | <para> | |
133 | Rather than performing the action, just print | |
134 | the container name. | |
135 | </para> | |
136 | </listitem> | |
137 | </varlistentry> | |
138 | ||
139 | <varlistentry> | |
140 | <term> | |
141 | <option>-t,--timeout <replaceable>TIMEOUT</replaceable></option> | |
142 | </term> | |
143 | <listitem> | |
144 | <para> | |
2da1f56c | 145 | Wait TIMEOUT seconds before hard-stopping the container. |
a6adab20 SG |
146 | </para> |
147 | </listitem> | |
148 | </varlistentry> | |
149 | </variablelist> | |
150 | </refsect1> | |
151 | ||
152 | &seealso; | |
153 | ||
154 | <refsect1> | |
155 | <title>Author</title> | |
156 | <para>Stéphane Graber <email>stgraber@ubuntu.com</email></para> | |
157 | </refsect1> | |
158 | </refentry> | |
159 | ||
160 | <!-- Keep this comment at the end of the file | |
161 | Local variables: | |
162 | mode: sgml | |
163 | sgml-omittag:t | |
164 | sgml-shorttag:t | |
165 | sgml-minimize-attributes:nil | |
166 | sgml-always-quote-attributes:t | |
167 | sgml-indent-step:2 | |
168 | sgml-indent-data: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 | |
174 | End: | |
175 | --> |