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