]>
Commit | Line | Data |
---|---|---|
57da8c32 KY |
1 | <!-- |
2 | ||
3 | lxc: linux Container library | |
4 | ||
5 | (C) Copyright IBM Corp. 2007, 2008 | |
6 | ||
7 | Authors: | |
8 | Daniel Lezcano <daniel.lezcano at free.fr> | |
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
23 | ||
8900b9eb | 24 | Translated into Japanese |
57da8c32 KY |
25 | by KATOH Yasufumi <karma at jazz.email.ne.jp> |
26 | ||
27 | --> | |
28 | ||
29 | <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ | |
30 | ||
31 | <!ENTITY commonoptions SYSTEM "@builddir@/common_options.sgml"> | |
32 | <!ENTITY seealso SYSTEM "@builddir@/see_also.sgml"> | |
33 | ]> | |
34 | ||
35 | <refentry> | |
36 | ||
37 | <docinfo><date>@LXC_GENERATE_DATE@</date></docinfo> | |
38 | ||
39 | <refmeta> | |
40 | <refentrytitle>lxc-restart</refentrytitle> | |
41 | <manvolnum>1</manvolnum> | |
42 | <refmiscinfo>IBM</refmiscinfo> | |
43 | </refmeta> | |
44 | ||
45 | <refnamediv> | |
46 | <refname>lxc-restart</refname> | |
47 | ||
48 | <refpurpose> | |
49 | <!-- | |
50 | restart a container from a file (not implemented yet) | |
51 | --> | |
52 | ファイルからコンテナを再起動する (未実装) | |
53 | </refpurpose> | |
54 | </refnamediv> | |
55 | ||
56 | <refsynopsisdiv> | |
57 | <cmdsynopsis> | |
58 | <command>lxc-restart</command> | |
59 | <arg choice="opt">-f <replaceable>config_file</replaceable></arg> | |
60 | <arg choice="opt">-s KEY=VAL</arg> | |
61 | <arg choice="req">--statefile=<replaceable>FILE</replaceable></arg> | |
62 | <arg choice="req">--statefd=<replaceable>FD</replaceable></arg> | |
63 | <arg choice="req">--name=<replaceable>NAME</replaceable></arg> | |
64 | </cmdsynopsis> | |
65 | </refsynopsisdiv> | |
66 | ||
67 | <refsect1> | |
68 | <title>Description</title> | |
69 | ||
70 | <para> | |
71 | <!-- | |
72 | <command>lxc-restart</command> is a command | |
73 | to restart an application from the state read in the specified | |
74 | <replaceable>FILE</replaceable>, in a container with the | |
75 | identifier <replaceable>NAME</replaceable>. | |
76 | If the option <option>--pause</option> | |
77 | is specified, the application will be stopped after the | |
78 | restart just before resuming execution. The command | |
79 | <command>lxc-unfreeze</command> will be needed to resume its | |
80 | execution. | |
81 | --> | |
82 | <command>lxc-restart</command> は <replaceable>FILE</replaceable> で指定したファイルから状態を読み取り,<replaceable>NAME</replaceable> で指定したコンテナ内のアプリケーションを再起動するコマンドです.もし <option>--pause</option> が指定された場合,アプリケーションは再起動後に直前の実行状態で再開する前に停止します.この実行状態の再開には <command>lxc-unfreeze</command> コマンドが必要になります. | |
83 | </para> | |
84 | </refsect1> | |
85 | ||
86 | <refsect1> | |
87 | <title><!-- Restart Options -->再起動オプション</title> | |
88 | ||
89 | <variablelist> | |
90 | <varlistentry> | |
91 | <term><option>-S, --statefile=<replaceable>FILE</replaceable></option></term> | |
92 | <listitem> | |
93 | <para> | |
94 | <!-- | |
95 | read the state of the container in this | |
96 | <replaceable>FILE</replaceable>. | |
97 | This option is exclusive with <option>--statefd</option> below. | |
98 | --> | |
99 | コンテナの状態を <replaceable>FILE</replaceable> で指定したファイルから読み取ります.このオプションは,後の <option>--statefd</option> と同時に指定できません. | |
100 | </para> | |
101 | </listitem> | |
102 | </varlistentry> | |
103 | ||
104 | <varlistentry> | |
105 | <term><option>-d, --statefd=<replaceable>FD</replaceable></option></term> | |
106 | <listitem> | |
107 | <para> | |
108 | <!-- | |
109 | read the state of the container in this | |
110 | <replaceable>FD</replaceable> file descriptor. | |
111 | This option is exclusive with above <option>--statefile</option>. | |
112 | --> | |
113 | コンテナの状態を <replaceable>FD</replaceable> で指定したファイル記述子から読み取ります.このオプションは,前の <option>--statefile</option> と同時に指定できません. | |
114 | </para> | |
115 | </listitem> | |
116 | </varlistentry> | |
117 | ||
118 | <varlistentry> | |
119 | <term><option>-p</option></term> | |
120 | <listitem> | |
121 | <para> | |
122 | <!-- | |
123 | Pause container processes after restart. The container will be | |
124 | stopped until you resume it with the lxc-unfreeze command. | |
125 | --> | |
126 | 再起動後にコンテナプロセスを一時停止します.コンテナは lxc-unfreeze コマンドで再開するまでは停止しています. | |
127 | </para> | |
128 | </listitem> | |
129 | </varlistentry> | |
130 | ||
131 | <varlistentry> | |
132 | <term><option>-f, --rcfile=<replaceable>config_file</replaceable></option></term> | |
133 | <listitem> | |
134 | <para> | |
135 | <!-- | |
136 | Specify the configuration file to configure the | |
137 | virtualization and isolation functionalities for the | |
138 | container. This parameter should be specified if it was | |
139 | specified for the <command>lxc-execute</command> | |
140 | or <command>lxc-start</command> commands or if the | |
141 | container configuration has to be changed at restart. The | |
142 | latter may fail if the needed resources are not available | |
143 | for the restart. If the container was created and | |
144 | configured with <command>lxc-create</command>, this option | |
145 | is not needed, the configuration will be automatically | |
146 | found. | |
147 | --> | |
148 | コンテナの仮想化および隔離機能を設定した設定ファイルを指定します.このパラメータは,<command>lxc-execute</command> コマンドや <command>lxc-start</command> コマンドで (起動時に) 指定されていた場合や,再起動後に設定を変更する場合に指定すべきです.後者の場合,再起動に必要なリソースが利用できない場合は失敗するでしょう.コンテナが <command>lxc-create</command> コマンドで作成され,設定されていた場合,このオプションは必要ありません.設定は自動的に見つけられるでしょう. | |
149 | </para> | |
150 | </listitem> | |
151 | </varlistentry> | |
152 | ||
153 | <varlistentry> | |
154 | <term> | |
155 | <option>-s <replaceable>KEY=VAL</replaceable></option> | |
156 | </term> | |
157 | <listitem> | |
158 | <para> | |
159 | <!-- | |
160 | Assign value <replaceable>VAL</replaceable> to configuration | |
161 | variable <replaceable>KEY</replaceable>. This overrides any | |
162 | assignment done in <replaceable>config_file</replaceable>. | |
163 | --> | |
164 | 設定変数 <replaceable>KEY</replaceable> の値を <replaceable>VAL</replaceable> に設定します.この設定は <replaceable>config_file</replaceable> で設定された値を上書きします. | |
165 | </para> | |
166 | </listitem> | |
167 | </varlistentry> | |
168 | ||
169 | </variablelist> | |
170 | ||
171 | </refsect1> | |
172 | ||
173 | &commonoptions; | |
174 | ||
175 | <refsect1> | |
176 | <title><!-- Examples -->例</title> | |
177 | <para> | |
178 | <!-- | |
179 | To start a new container <literal>123</literal> computing decimals of pi | |
180 | --> | |
181 | 円周率の小数点以下を計算する新しいコンテナ <literal>123</literal> を開始するために, | |
182 | </para> | |
183 | <programlisting> | |
184 | lxc-execute -n 123 -- pi1 -d 500000 | |
185 | lxc-execute --name=123 -- pi1 -d 500000 | |
186 | </programlisting> | |
187 | ||
188 | <para> | |
189 | <!-- | |
190 | to checkpoint the same container in <emphasis>dump-death</emphasis> | |
191 | mode | |
192 | --> | |
193 | <emphasis>dump-death</emphasis> モードで同じコンテナのチェックポイントを作成するために, | |
194 | </para> | |
195 | <programlisting> | |
196 | lxc-checkpoint -n 123 -S /share/123/chkpt1 -k | |
197 | lxc-checkpoint --name=123 --statefile=/share/123/chkpt1 -k | |
198 | </programlisting> | |
199 | ||
200 | <para> | |
201 | <!-- | |
202 | and to restart the same container with a different id | |
203 | --> | |
204 | そして,異なる id で同じコンテナを再起動するために, | |
205 | </para> | |
206 | <programlisting> | |
207 | lxc-restart -n 200 -S /share/123/chkpt1 | |
208 | lxc-restart --name=200 --statefile=/share/123/chkpt1 | |
209 | </programlisting> | |
210 | ||
211 | </refsect1> | |
212 | ||
213 | <refsect1> | |
214 | <title><!-- Notes -->注意</title> | |
215 | <para> | |
216 | <!-- | |
217 | Actually, this command does not operate. Its description | |
218 | helps to define a CLI api for future Checkpoint / Restart | |
219 | solution | |
220 | --> | |
221 | 実際はこのコマンドは動作しません.この説明は将来的なチェックポイント/再起動の解決策となる CLI API を定義するのを助けるためのものです. | |
222 | </para> | |
223 | </refsect1> | |
224 | ||
225 | &seealso; | |
226 | ||
227 | <refsect1> | |
228 | <title><!-- Author -->作者</title> | |
229 | <para>Daniel Lezcano <email>daniel.lezcano@free.fr</email></para> | |
230 | </refsect1> | |
231 | ||
232 | </refentry> | |
233 | ||
234 | <!-- Keep this comment at the end of the file | |
235 | Local variables: | |
236 | mode: sgml | |
237 | sgml-omittag:t | |
238 | sgml-shorttag:t | |
239 | sgml-minimize-attributes:nil | |
240 | sgml-always-quote-attributes:t | |
241 | sgml-indent-step:2 | |
242 | sgml-indent-data:t | |
243 | sgml-parent-document:nil | |
244 | sgml-default-dtd-file:nil | |
245 | sgml-exposed-tags:nil | |
246 | sgml-local-catalogs:nil | |
247 | sgml-local-ecat-files:nil | |
248 | End: | |
249 | --> |