]>
Commit | Line | Data |
---|---|---|
8900b9eb | 1 | <!-- |
57da8c32 KY |
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 | |
a5ba9671 | 22 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
57da8c32 | 23 | |
8900b9eb | 24 | Translated into Japanese |
57da8c32 KY |
25 | by KATOH Yasufumi <karma at jazz.email.ne.jp> |
26 | ||
27 | --> | |
28 | ||
faefa7f8 | 29 | <!DOCTYPE refentry PUBLIC @docdtd@ [ |
57da8c32 KY |
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-stop</refentrytitle> | |
41 | <manvolnum>1</manvolnum> | |
42 | </refmeta> | |
43 | ||
44 | <refnamediv> | |
45 | <refname>lxc-stop</refname> | |
46 | ||
47 | <refpurpose> | |
48 | <!-- | |
49 | stop the application running inside a container | |
50 | --> | |
6127da6b | 51 | コンテナ内で動作しているアプリケーションの停止 |
57da8c32 KY |
52 | </refpurpose> |
53 | </refnamediv> | |
54 | ||
55 | <refsynopsisdiv> | |
56 | <cmdsynopsis> | |
57 | <command>lxc-stop</command> | |
58 | <arg choice="req">-n <replaceable>name</replaceable></arg> | |
a5ba9671 KY |
59 | <arg choice="opt">-W</arg> |
60 | <arg choice="opt">-r</arg> | |
61 | <arg choice="opt">-t <replaceable>timeout</replaceable></arg> | |
62 | <arg choice="opt">-k</arg> | |
38d626f8 KY |
63 | <arg choice="opt">--nokill</arg> |
64 | <arg choice="opt">--nolock</arg> | |
57da8c32 KY |
65 | </cmdsynopsis> |
66 | </refsynopsisdiv> | |
67 | ||
68 | <refsect1> | |
69 | <title><!-- Description -->説明</title> | |
70 | ||
71 | <para> | |
72 | <!-- | |
a5ba9671 KY |
73 | <command>lxc-stop</command> reboots, cleanly shuts down, or kills |
74 | all the processes inside the container. By default, it will | |
38d626f8 | 75 | request a clean shutdown of the container by sending |
55c84efc | 76 | <command>lxc.signal.halt</command> (defaults to SIGPWR) to |
38d626f8 KY |
77 | the container's init process, waiting up to 60 seconds for the container |
78 | to exit, and then returning. If the container fails to cleanly exit in | |
55c84efc | 79 | 60 seconds, it will be sent the <command>lxc.signal.stop</command> |
ea4cadbf | 80 | (defaults to SIGKILL) to force it to shut down. A request to reboot will |
55c84efc | 81 | send the <command>lxc.signal.reboot</command> (defaults to SIGINT) to the |
ea4cadbf | 82 | container's init process. |
57da8c32 | 83 | --> |
dc421f3a | 84 | <command>lxc-stop</command> は、リブート、クリーンシャットダウン、コンテナ内の全てのプロセスの kill のどれかを行います。 |
55c84efc | 85 | デフォルトでは、コンテナのクリーンなシャットダウンを <command>lxc.signal.halt</command> (デフォルトでは SIGPWR) をコンテナの init プロセスに送ることでリクエストし、コンテナの終了を 60 秒待ち、return します。 |
86 | コンテナが 60 秒の間にクリーンに終了するのに失敗した場合、<command>lxc.signal.stop</command> (デフォルトは SIGKILL です) を送り、強制的にシャットダウンします。 | |
87 | リブートのリクエストは <command>lxc.signal.reboot</command> に設定されたシグナルをコンテナの init プロセスに送ります (デフォルトは SIGINT です)。 | |
a5ba9671 KY |
88 | </para> |
89 | ||
90 | <para> | |
91 | <!-- | |
38d626f8 | 92 | The <optional>-W</optional>, <optional>-r</optional>, |
baeebd0d | 93 | <optional>-k</optional> and <optional>\-\-nokill</optional> |
38d626f8 | 94 | options specify the action to perform. |
a5ba9671 KY |
95 | <optional>-W</optional> indicates that after performing the specified |
96 | action, <command>lxc-stop</command> should immediately exit, while | |
97 | <optional>-t TIMEOUT</optional> specifies the maximum amount of time | |
98 | to wait for the container to complete the shutdown or reboot. | |
99 | --> | |
dc421f3a KY |
100 | <optional>-W</optional>, <optional>-r</optional>, <optional>-s</optional>, <optional>-k</optional>, <optional>--nokill</optional> オプションは実行する際のアクションを指定します。 |
101 | <optional>-W</optional> は、指定したアクションの後に、<command>lxc-stop</command> は速やかに終了します。 | |
102 | 一方、<optional>-t TIMEOUT</optional> はコンテナが完全にシャットダウンやリブートするのを待つ時間の最大値を設定します。 | |
57da8c32 KY |
103 | </para> |
104 | ||
105 | </refsect1> | |
106 | ||
a5ba9671 | 107 | <refsect1> |
9a97d4e4 | 108 | <title><!-- Options -->オプション</title> |
a5ba9671 KY |
109 | <variablelist> |
110 | ||
111 | <varlistentry> | |
112 | <term> | |
113 | <option>-r,--reboot </option> | |
114 | </term> | |
115 | <listitem> | |
116 | <para> | |
117 | <!-- | |
118 | Request a reboot of the container. | |
119 | --> | |
dc421f3a | 120 | コンテナのリブートをリクエストします。 |
a5ba9671 KY |
121 | </para> |
122 | </listitem> | |
123 | </varlistentry> | |
124 | ||
125 | <varlistentry> | |
126 | <term> | |
38d626f8 | 127 | <option>-k,--kill </option> |
a5ba9671 KY |
128 | </term> |
129 | <listitem> | |
130 | <para> | |
131 | <!-- | |
38d626f8 KY |
132 | Rather than requesting a clean shutdown of the container, explicitly |
133 | kill all tasks in the container. This is the legacy | |
134 | <command>lxc-stop</command> behavior. | |
135 | --> | |
dc421f3a KY |
136 | コンテナのクリーンシャットダウンをリクエストするのでなく、明確にコンテナ内の全てのタスクを kill します。 |
137 | これは、以前の <command>lxc-stop</command> の動作です。 | |
a5ba9671 KY |
138 | </para> |
139 | </listitem> | |
38d626f8 | 140 | </varlistentry> |
a5ba9671 KY |
141 | |
142 | <varlistentry> | |
143 | <term> | |
38d626f8 | 144 | <option>--nokill</option> |
a5ba9671 KY |
145 | </term> |
146 | <listitem> | |
147 | <para> | |
148 | <!-- | |
38d626f8 KY |
149 | Only request a clean shutdown, do not kill the container tasks if the |
150 | clean shutdown fails. | |
151 | --> | |
dc421f3a KY |
152 | クリーンなシャットダウンのみをリクエストします。 |
153 | クリーンなシャットダウンに失敗した場合でも、コンテナのタスクを kill しません。 | |
a5ba9671 KY |
154 | </para> |
155 | </listitem> | |
38d626f8 | 156 | </varlistentry> |
241c3744 KY |
157 | |
158 | <varlistentry> | |
159 | <term> | |
160 | <option>--nolock </option> | |
161 | </term> | |
162 | <listitem> | |
163 | <para> | |
164 | <!-- | |
165 | This option avoids the use of any of the API lxc locking, and should | |
166 | only be used if <command>lxc-stop</command> is hanging due to a bad | |
167 | system state. | |
168 | --> | |
dc421f3a KY |
169 | このオプションはいかなる場合でも API の lxc のロックの使用を回避します。 |
170 | システム状態が不良な場合に lxc-stop の応答がない状態の場合のみ使用すべきです。 | |
241c3744 KY |
171 | </para> |
172 | </listitem> | |
173 | </varlistentry> | |
a5ba9671 KY |
174 | |
175 | <varlistentry> | |
176 | <term> | |
177 | <option>-W,--nowait </option> | |
178 | </term> | |
179 | <listitem> | |
180 | <para> | |
181 | <!-- | |
182 | Simply perform the requestion action (reboot, shutdown, or hard | |
183 | kill) and exit. | |
184 | --> | |
dc421f3a | 185 | リクエストされたアクション (reboot, shutdown, 強制的な kill) を実行するだけで (すぐに) 終了 (exit) します。 |
a5ba9671 KY |
186 | </para> |
187 | </listitem> | |
188 | </varlistentry> | |
189 | ||
190 | <varlistentry> | |
191 | <term> | |
192 | <option>-t,--timeout <replaceable>TIMEOUT</replaceable></option> | |
193 | </term> | |
194 | <listitem> | |
195 | <para> | |
196 | <!-- | |
fe8e3acf | 197 | Wait TIMEOUT seconds before hard-stopping the container. |
a5ba9671 | 198 | --> |
dc421f3a | 199 | コンテナの強制停止まで TIMEOUT 秒待ちます。 |
a5ba9671 KY |
200 | </para> |
201 | </listitem> | |
202 | </varlistentry> | |
203 | ||
204 | </variablelist> | |
205 | </refsect1> | |
57da8c32 | 206 | |
bb8eca54 KY |
207 | <refsect1> |
208 | <title><!-- Exit value -->終了ステータス</title> | |
209 | ||
210 | <variablelist> | |
211 | ||
212 | <varlistentry> | |
213 | <term>0</term> | |
214 | <listitem> | |
215 | <para> | |
216 | <!-- | |
217 | The container was successfully stopped. | |
218 | --> | |
dc421f3a | 219 | コンテナの停止が成功しました。 |
bb8eca54 KY |
220 | </para> |
221 | </listitem> | |
222 | </varlistentry> | |
223 | ||
224 | <varlistentry> | |
225 | <term>1</term> | |
226 | <listitem> | |
227 | <para> | |
228 | <!-- | |
229 | An error occurred while stopping the container. | |
230 | --> | |
dc421f3a | 231 | コンテナの停止中にエラーが発生しました。 |
bb8eca54 KY |
232 | </para> |
233 | </listitem> | |
234 | </varlistentry> | |
235 | ||
236 | <varlistentry> | |
237 | <term>2</term> | |
238 | <listitem> | |
239 | <para> | |
240 | <!-- | |
241 | The specified container exists but was not running. | |
242 | --> | |
dc421f3a | 243 | 指定のコンテナは存在しますが、実行中ではありません。 |
bb8eca54 KY |
244 | </para> |
245 | </listitem> | |
246 | </varlistentry> | |
247 | ||
248 | </variablelist> | |
249 | ||
250 | </refsect1> | |
57da8c32 KY |
251 | <refsect1> |
252 | <title><!-- Diagnostic -->診断</title> | |
253 | ||
254 | <variablelist> | |
255 | ||
57da8c32 KY |
256 | <varlistentry> |
257 | <term>The container was not found</term> | |
258 | <listitem> | |
259 | <para> | |
260 | <!-- | |
261 | The specified container was not created before with | |
262 | the <command>lxc-create</command> command. | |
263 | --> | |
dc421f3a | 264 | 指定したコンテナが <command>lxc-create</command> で作成されておらず存在しません。 |
57da8c32 KY |
265 | </para> |
266 | </listitem> | |
267 | </varlistentry> | |
268 | ||
57da8c32 KY |
269 | </variablelist> |
270 | ||
271 | </refsect1> | |
272 | ||
273 | &seealso; | |
274 | ||
275 | <refsect1> | |
276 | <title><!-- Author -->作者</title> | |
277 | <para>Daniel Lezcano <email>daniel.lezcano@free.fr</email></para> | |
278 | </refsect1> | |
279 | ||
280 | </refentry> | |
281 | ||
282 | <!-- Keep this comment at the end of the file | |
283 | Local variables: | |
284 | mode: sgml | |
285 | sgml-omittag:t | |
286 | sgml-shorttag:t | |
287 | sgml-minimize-attributes:nil | |
288 | sgml-always-quote-attributes:t | |
289 | sgml-indent-step:2 | |
290 | sgml-indent-data:t | |
291 | sgml-parent-document:nil | |
292 | sgml-default-dtd-file:nil | |
293 | sgml-exposed-tags:nil | |
294 | sgml-local-catalogs:nil | |
295 | sgml-local-ecat-files:nil | |
296 | End: | |
297 | --> |