3 lxc: linux Container library
5 (C) Copyright IBM Corp. 2007, 2008
8 Daniel Lezcano <daniel.lezcano at free.fr>
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.
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.
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
24 Translated into Japanese
25 by KATOH Yasufumi <karma at jazz.email.ne.jp>
29 <!DOCTYPE refentry PUBLIC @docdtd@ [
31 <!ENTITY commonoptions SYSTEM "@builddir@/common_options.sgml">
32 <!ENTITY seealso SYSTEM "@builddir@/see_also.sgml">
37 <docinfo><date>@LXC_GENERATE_DATE@</date></docinfo>
40 <refentrytitle>lxc-stop</refentrytitle>
41 <manvolnum>1</manvolnum>
45 <refname>lxc-stop</refname>
49 stop the application running inside a container
51 コンテナ内で動作しているアプリケーションの停止
57 <command>lxc-stop</command>
58 <arg choice="req">-n <replaceable>name</replaceable></arg>
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>
63 <arg choice="opt">--nokill</arg>
64 <arg choice="opt">--nolock</arg>
69 <title><!-- Description -->説明</title>
73 <command>lxc-stop</command> reboots, cleanly shuts down, or kills
74 all the processes inside the container. By default, it will
75 request a clean shutdown of the container by sending
76 <command>lxc.signal.halt</command> (defaults to SIGPWR) to
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
79 60 seconds, it will be sent the <command>lxc.signal.stop</command>
80 (defaults to SIGKILL) to force it to shut down. A request to reboot will
81 send the <command>lxc.signal.reboot</command> (defaults to SIGINT) to the
82 container's init process.
84 <command>lxc-stop</command> は、リブート、クリーンシャットダウン、コンテナ内の全てのプロセスの kill のどれかを行います。
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 です)。
92 The <optional>-W</optional>, <optional>-r</optional>,
93 <optional>-k</optional> and <optional>\-\-nokill</optional>
94 options specify the action to perform.
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.
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> はコンテナが完全にシャットダウンやリブートするのを待つ時間の最大値を設定します。
108 <title><!-- Options -->オプション</title>
113 <option>-r,--reboot </option>
118 Request a reboot of the container.
127 <option>-k,--kill </option>
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.
136 コンテナのクリーンシャットダウンをリクエストするのでなく、明確にコンテナ内の全てのタスクを kill します。
137 これは、以前の <command>lxc-stop</command> の動作です。
144 <option>--nokill</option>
149 Only request a clean shutdown, do not kill the container tasks if the
150 clean shutdown fails.
152 クリーンなシャットダウンのみをリクエストします。
153 クリーンなシャットダウンに失敗した場合でも、コンテナのタスクを kill しません。
160 <option>--nolock </option>
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
169 このオプションはいかなる場合でも API の lxc のロックの使用を回避します。
170 システム状態が不良な場合に lxc-stop の応答がない状態の場合のみ使用すべきです。
177 <option>-W,--nowait </option>
182 Simply perform the requestion action (reboot, shutdown, or hard
185 リクエストされたアクション (reboot, shutdown, 強制的な kill) を実行するだけで (すぐに) 終了 (exit) します。
192 <option>-t,--timeout <replaceable>TIMEOUT</replaceable></option>
197 Wait TIMEOUT seconds before hard-stopping the container.
199 コンテナの強制停止まで TIMEOUT 秒待ちます。
208 <title><!-- Exit value -->終了ステータス</title>
217 The container was successfully stopped.
229 An error occurred while stopping the container.
241 The specified container exists but was not running.
243 指定のコンテナは存在しますが、実行中ではありません。
252 <title><!-- Diagnostic -->診断</title>
257 <term>The container was not found</term>
261 The specified container was not created before with
262 the <command>lxc-create</command> command.
264 指定したコンテナが <command>lxc-create</command> で作成されておらず存在しません。
276 <title><!-- Author -->作者</title>
277 <para>Daniel Lezcano <email>daniel.lezcano@free.fr</email></para>
282 <!-- Keep this comment at the end of the file
287 sgml-minimize-attributes:nil
288 sgml-always-quote-attributes: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