]>
Commit | Line | Data |
---|---|---|
28f2ab26 KY |
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 | ||
9111aa79 KY |
24 | Translated into Japanese |
25 | by KATOH Yasufumi <karma at jazz.email.ne.jp> | |
26 | ||
28f2ab26 KY |
27 | --> |
28 | ||
29 | <!DOCTYPE refentry PUBLIC @docdtd@ [ | |
30 | <!ENTITY commonoptions SYSTEM "@builddir@/common_options.sgml"> | |
31 | <!ENTITY seealso SYSTEM "@builddir@/see_also.sgml"> | |
32 | ]> | |
33 | ||
34 | <refentry> | |
35 | <docinfo><date>@LXC_GENERATE_DATE@</date></docinfo> | |
36 | <refmeta> | |
37 | <refentrytitle>lxc-autostart</refentrytitle> | |
38 | <manvolnum>1</manvolnum> | |
39 | </refmeta> | |
40 | ||
41 | <refnamediv> | |
42 | <refname>lxc-autostart</refname> | |
43 | ||
44 | <refpurpose> | |
45 | <!-- | |
46 | start/stop/kill auto-started containers | |
47 | --> | |
48 | 自動起動の設定がされたコンテナの開始/停止/kill | |
49 | </refpurpose> | |
50 | </refnamediv> | |
51 | ||
52 | <refsynopsisdiv> | |
53 | <cmdsynopsis> | |
54 | <command>lxc-autostart</command> | |
55 | <arg choice="opt">-k</arg> | |
56 | <arg choice="opt">-L</arg> | |
57 | <arg choice="opt">-r</arg> | |
58 | <arg choice="opt">-s</arg> | |
59 | <arg choice="opt">-a</arg> | |
800648d2 | 60 | <arg choice="opt">-A</arg> |
28f2ab26 KY |
61 | <arg choice="opt">-g <replaceable>groups</replaceable></arg> |
62 | <arg choice="opt">-t <replaceable>timeout</replaceable></arg> | |
63 | </cmdsynopsis> | |
64 | </refsynopsisdiv> | |
65 | ||
66 | <refsect1> | |
67 | <title><!-- Description -->説明</title> | |
68 | ||
69 | <para> | |
70 | <!-- | |
71 | <command>lxc-autostart</command> processes containers | |
72 | with lxc.start.auto set. It lets the user start, shutdown, | |
73 | kill, restart containers in the right order, waiting the | |
74 | right time. Supports filtering by lxc.group or just run | |
75 | against all defined containers. It can also be used by | |
76 | external tools in list mode where no action will be performed | |
77 | and the list of affected containers (and if relevant, delays) | |
78 | will be shown. | |
79 | --> | |
dc421f3a KY |
80 | <command>lxc-autostart</command> は lxc.start.auto が設定されたコンテナの処理を行います。 |
81 | ユーザがコンテナの開始、シャットダウン、kill、再起動を、設定した時間間隔で、設定した順番で行えるようにします。 | |
82 | lxc.group でのフィルタリングによって、もしくは定義された全てのコンテナを実行します。 | |
83 | 何の動作も行わず、対象のコンテナ (とコンテナに設定された起動待機時間) のリストを表示するリストモードを外部ツールから使用することも可能です。 | |
28f2ab26 KY |
84 | </para> |
85 | ||
86 | <para> | |
87 | <!-- | |
88 | The <optional>-r</optional>, <optional>-s</optional> | |
89 | and <optional>-k</optional> options specify the action to perform. | |
90 | If none is specified, then the containers will be started. | |
91 | <optional>-a</optional> and <optional>-g</optional> are used to | |
92 | specify which containers will be affected. By default only | |
93 | containers without a lxc.group set will be affected. | |
94 | <optional>-t TIMEOUT</optional> specifies the maximum amount | |
95 | of time to wait for the container to complete the shutdown | |
96 | or reboot. | |
97 | --> | |
dc421f3a KY |
98 | <optional>-r</optional>, <optional>-s</optional>, <optional>-k</optional> オプションは実行する動作を指定します。何も指定しない場合は、コンテナを起動します。 |
99 | <optional>-a</optional>, <optional>-g</optional> は、どのコンテナを対象にするかを指定するのに使います。デフォルトでは、lxc.group が指定されていないコンテナにだけが対象となります。 | |
100 | <optional>-t TIMEOUT</optional> はコンテナが完全にシャットダウンもしくはリブートを待つ最大時間を指定します。 | |
28f2ab26 KY |
101 | </para> |
102 | </refsect1> | |
103 | ||
104 | <refsect1> | |
105 | <title><!-- Options -->オプション</title> | |
106 | <variablelist> | |
107 | <varlistentry> | |
108 | <term> | |
109 | <option>-r,--reboot </option> | |
110 | </term> | |
111 | <listitem> | |
112 | <para> | |
113 | <!-- | |
114 | Request a reboot of the container. | |
115 | --> | |
dc421f3a | 116 | コンテナのリブートを要求します。 |
28f2ab26 KY |
117 | </para> |
118 | </listitem> | |
119 | </varlistentry> | |
120 | ||
121 | <varlistentry> | |
122 | <term> | |
123 | <option>-s,--shutdown </option> | |
124 | </term> | |
125 | <listitem> | |
126 | <para> | |
127 | <!-- | |
5fd9f759 KY |
128 | Request a clean shutdown. If a |
129 | <optional>-t timeout</optional> greater than 0 is | |
130 | given and the container has not shut down within | |
131 | this period, it will be killed as with the | |
132 | <optional>-k kill</optional> option. | |
28f2ab26 | 133 | --> |
dc421f3a | 134 | クリーンなシャットダウンを要求します。もし、<optional>-t timeout</optional> が 0 より大きい場合で、コンテナがこの時間内にシャットダウンしない場合は、コンテナは <optional>-k kill</optional> オプションを指定した時のように kill されます。 |
28f2ab26 KY |
135 | </para> |
136 | </listitem> | |
137 | </varlistentry> | |
138 | ||
139 | <varlistentry> | |
140 | <term> | |
141 | <option>-k,--kill </option> | |
142 | </term> | |
143 | <listitem> | |
144 | <para> | |
145 | <!-- | |
146 | Rather than requesting a clean shutdown of the | |
147 | container, explicitly kill all tasks in the container. | |
148 | --> | |
dc421f3a | 149 | コンテナのクリーンなシャットダウンを要求するのではなく、明確にコンテナの全てのタスクを kill します。 |
28f2ab26 KY |
150 | </para> |
151 | </listitem> | |
152 | </varlistentry> | |
153 | ||
154 | <varlistentry> | |
155 | <term> | |
156 | <option>-L,--list </option> | |
157 | </term> | |
158 | <listitem> | |
159 | <para> | |
160 | <!-- | |
161 | Rather than performing the action, just print | |
3ae656b5 | 162 | the container name and wait delays until starting the next container. |
28f2ab26 | 163 | --> |
3ae656b5 | 164 | 実際の動作は行わず、コンテナ名と次のコンテナを開始するまでの間隔の表示だけを行います。 |
28f2ab26 KY |
165 | </para> |
166 | </listitem> | |
167 | </varlistentry> | |
168 | ||
169 | <varlistentry> | |
170 | <term> | |
171 | <option>-t,--timeout <replaceable>TIMEOUT</replaceable></option> | |
172 | </term> | |
173 | <listitem> | |
174 | <para> | |
175 | <!-- | |
2da1f56c | 176 | Wait TIMEOUT seconds before hard-stopping the container. |
28f2ab26 | 177 | --> |
dc421f3a | 178 | コンテナの強制停止まで TIMEOUT 秒待ちます。 |
28f2ab26 KY |
179 | </para> |
180 | </listitem> | |
181 | </varlistentry> | |
9111aa79 KY |
182 | |
183 | <varlistentry> | |
184 | <term> | |
185 | <option>-g,--group <replaceable>GROUP</replaceable></option> | |
186 | </term> | |
187 | <listitem> | |
188 | <para> | |
189 | <!-- | |
f57517ef KY |
190 | Comma separated list of groups to select |
191 | (defaults to those without a lxc.group - the NULL group). | |
192 | This option may be specified multiple times | |
193 | and the arguments concatenated. The NULL or | |
194 | empty group may be specified as a leading comma, | |
195 | trailing comma, embedded double comma, or empty | |
196 | argument where the NULL group should be processed. | |
197 | Groups are processed in the order specified on the | |
198 | command line. Multiple invocations of the -g option | |
199 | may be freely intermixed with the comma separated | |
200 | lists and will be combined in specified order. | |
9111aa79 | 201 | --> |
f57517ef KY |
202 | 対象にするコンテナのグループのカンマ区切りのリスト (デフォルトでは lxc.group 指定のないコンテナ、つまり NULL グループが対象になります)。 |
203 | このオプションは複数回指定することができ、オプションは連結されます。NULL もしくは空のグループは、NULL グループを処理すべき場所に指定された先頭のカンマ、末尾のカンマ、途中に現れる 2 つ続きのカンマ、空のオプション引数で指定することができます。 | |
204 | グループはコマンドラインで指定された順番に処理されます。-g オプションの複数回の呼び出しはカンマ区切りのリストと自由に混ぜることができ、指定した順番に連結されます。 | |
9111aa79 KY |
205 | </para> |
206 | </listitem> | |
207 | </varlistentry> | |
208 | ||
209 | <varlistentry> | |
210 | <term> | |
211 | <option>-a,--all</option> | |
212 | </term> | |
213 | <listitem> | |
214 | <para> | |
215 | <!-- | |
216 | Ignore lxc.group and select all auto-started containers. | |
217 | --> | |
dc421f3a | 218 | lxc.group の指定を無視して、自動起動が設定されているコンテナを全て選択します。 |
9111aa79 KY |
219 | </para> |
220 | </listitem> | |
221 | </varlistentry> | |
800648d2 KY |
222 | |
223 | <varlistentry> | |
224 | <term> | |
225 | <option>-A,--ignore-auto</option> | |
226 | </term> | |
227 | <listitem> | |
228 | <para> | |
229 | <!-- | |
230 | Ignore the lxc.start.auto flag. Combined with | |
231 | -a, will select all containers on the system. | |
232 | --> | |
dc421f3a | 233 | lxc.start.auto で設定されているフラグを無視します。-a と組み合わせることにより、システム上の全てのコンテナを選択します。 |
800648d2 KY |
234 | </para> |
235 | </listitem> | |
236 | </varlistentry> | |
28f2ab26 KY |
237 | </variablelist> |
238 | </refsect1> | |
239 | ||
f57517ef KY |
240 | <refsect1> |
241 | <title><!-- Autostart and System Boot -->自動起動とシステムブート</title> | |
242 | ||
243 | <para> | |
244 | <!-- | |
245 | The <command>lxc-autostart</command> command is used as part of the | |
246 | LXC system service, when enabled to run on host system at bootup and at | |
247 | shutdown. It's used to select which containers to start in what order | |
248 | and how much to delay between each startup when the host system boots. | |
249 | --> | |
250 | <command>lxc-autostart</command> コマンドは、LXC システムサービスがホストシステムのブートおよびシャットダウン時に実行するように有効化されているとき、LXC システムサービスの一部として使用されます。 | |
251 | このコマンドはホストシステムのブート時に、どのコンテナをどういう順番で、それぞれのコンテナの起動間隔をどれくらい開けるかを選択するのに使います。 | |
252 | </para> | |
253 | ||
254 | <para> | |
255 | <!-- | |
256 | Each container can be part of any number of groups or no group at all. | |
257 | Two groups are special. One is the NULL group, i.e. the container does | |
258 | not belong to any group. The other group is the "onboot" group. | |
259 | --> | |
260 | コンテナはいくつでもグループに属することができ、全く属さないことも可能です。特別なグループが 2 つ存在します。1 つは NULL グループです。これはどのグループにも属さないコンテナです。もう 1 つは "onboot" グループです。 | |
261 | </para> | |
262 | ||
263 | <para> | |
264 | <!-- | |
265 | When the system boots with the LXC service enabled, it will first | |
266 | attempt to boot any containers with lxc.start.auto == 1 that is a member | |
267 | of the "onboot" group. The startup will be in order of lxc.start.order. | |
268 | If an lxc.start.delay has been specified, that delay will be honored | |
269 | before attempting to start the next container to give the current | |
270 | container time to begin initialization and reduce overloading the host | |
271 | system. After starting the members of the "onboot" group, the LXC system | |
272 | will proceed to boot containers with lxc.start.auto == 1 which are not | |
273 | members of any group (the NULL group) and proceed as with the onboot | |
274 | group. | |
275 | --> | |
276 | LXC サービスが有効になった状態でシステムがブートすると、最初に "onboot" グループのメンバーである lxc.start.auto == 1 が設定されたコンテナを起動しようとします。起動は lxc.start.order の順に起動します。 | |
277 | lxc.start.delay が指定されている場合、現在対象となっているコンテナに初期化の時間を与え、ホストシステムの負荷を低減するために、次のコンテナを開始させるまでに遅延時間を与えます。 | |
278 | "onboot" グループのメンバーが開始した後、LXC システムは lxc.start.auto == 1 が設定された、どのグループのメンバーでもない (NULL グループの) コンテナのブートを onboot グループのコンテナと同様に開始します。 | |
279 | </para> | |
280 | </refsect1> | |
281 | ||
282 | <refsect1> | |
283 | <title><!-- Startup Group Examples -->スタートアップグループの例</title> | |
284 | <variablelist> | |
285 | <varlistentry> | |
286 | <term> | |
287 | <option>-g "onboot,"</option> | |
288 | </term> | |
289 | <listitem> | |
290 | <para> | |
291 | <!-- | |
292 | Start the "onboot" group first then the NULL group. | |
293 | --> | |
294 | まず最初に "onboot" グループの処理を開始し、その後 NULL グループの処理を開始します。 | |
295 | </para> | |
296 | <para> | |
297 | <!-- | |
298 | This is the equivalent of: <option>-g onboot -g ""</option>. | |
299 | --> | |
300 | これは以下と等価です: <option>-g onboot -g ""</option> | |
301 | </para> | |
302 | </listitem> | |
303 | </varlistentry> | |
304 | <varlistentry> | |
305 | <term> | |
306 | <option>-g "dns,web,,onboot"</option> | |
307 | </term> | |
308 | <listitem> | |
309 | <para> | |
310 | <!-- | |
311 | Starts the "dns" group first, the "web" group second, then | |
312 | the NULL group followed by the "onboot" group. | |
313 | --> | |
314 | まず最初に "dns" グループの処理を開始し、2 番目に "web" グループ、その後 NULL グループ、"onboot" グループの順に処理を開始します。 | |
315 | </para> | |
316 | <para> | |
317 | <!-- | |
318 | This is the equivalent of: <option>-g dns,web -g ,onboot</option> or <option>-g dns -g web -g "" -g onboot</option>. | |
319 | --> | |
320 | これは以下と等価です: <option>-g dns,web -g ,onboot</option> もしくは <option>-g dns -g web -g "" -g onboot</option> | |
321 | </para> | |
322 | </listitem> | |
323 | </varlistentry> | |
324 | </variablelist> | |
325 | </refsect1> | |
326 | ||
28f2ab26 KY |
327 | &seealso; |
328 | ||
329 | <refsect1> | |
51fded06 | 330 | <title><!-- Author -->作者</title> |
28f2ab26 KY |
331 | <para>Stéphane Graber <email>stgraber@ubuntu.com</email></para> |
332 | </refsect1> | |
333 | </refentry> | |
334 | ||
335 | <!-- Keep this comment at the end of the file | |
336 | Local variables: | |
337 | mode: sgml | |
338 | sgml-omittag:t | |
339 | sgml-shorttag:t | |
340 | sgml-minimize-attributes:nil | |
341 | sgml-always-quote-attributes:t | |
342 | sgml-indent-step:2 | |
343 | sgml-indent-data:t | |
344 | sgml-parent-document:nil | |
345 | sgml-default-dtd-file:nil | |
346 | sgml-exposed-tags:nil | |
347 | sgml-local-catalogs:nil | |
348 | sgml-local-ecat-files:nil | |
349 | End: | |
350 | --> |