Commit 38d626f8 by KATOH Yasufumi Committed by Stéphane Graber

doc: Update Japanese lxc-stop(1), lxc.conf(5), lxc-start-ephemeral(1)

* nokill option of lxc-stop (commit 84fbfcb4) * lxc.haltsignal in lxc.conf (commit f0f1d8c0) * fix sgml (commit d438f5a0) Signed-off-by: 's avatarKATOH Yasufumi <karma@jazz.email.ne.jp> Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent 29b10e4f
...@@ -228,7 +228,9 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp> ...@@ -228,7 +228,9 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp>
<manvolnum>1</manvolnum> <manvolnum>1</manvolnum>
</citerefentry>, </citerefentry>,
</simpara> </simpara>
</refsect1>
<refsect1>
<title><!-- Examples -->例</title> <title><!-- Examples -->例</title>
<variablelist> <variablelist>
<varlistentry> <varlistentry>
......
...@@ -60,7 +60,8 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp> ...@@ -60,7 +60,8 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp>
<arg choice="opt">-r</arg> <arg choice="opt">-r</arg>
<arg choice="opt">-t <replaceable>timeout</replaceable></arg> <arg choice="opt">-t <replaceable>timeout</replaceable></arg>
<arg choice="opt">-k</arg> <arg choice="opt">-k</arg>
<arg choice="opt">-s</arg> <arg choice="opt">--nokill</arg>
<arg choice="opt">--nolock</arg>
</cmdsynopsis> </cmdsynopsis>
</refsynopsisdiv> </refsynopsisdiv>
...@@ -71,27 +72,29 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp> ...@@ -71,27 +72,29 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp>
<!-- <!--
<command>lxc-stop</command> reboots, cleanly shuts down, or kills <command>lxc-stop</command> reboots, cleanly shuts down, or kills
all the processes inside the container. By default, it will all the processes inside the container. By default, it will
request a clean shutdown of the container (by sending SIGPWR to request a clean shutdown of the container by sending
the container), wait 60 seconds for the container to exit, and <command>lxc.haltsignal</command> (defaults to SIGPWR) to
returns. If the container fails to cleanly exit, then after 60 the container's init process, waiting up to 60 seconds for the container
seconds the container will be sent the to exit, and then returning. If the container fails to cleanly exit in
<command>lxc.stopsignal</command> to force it to shut down. 60 seconds, it will be sent the <command>lxc.stopsignal</command>
(defaults to SIGKILL) to force it to shut down.
--> -->
<command>lxc-stop</command> は,リブート,クリーンシャットダウン,コンテナ内の全てのプロセスの kill のどれかを行います. <command>lxc-stop</command> は,リブート,クリーンシャットダウン,コンテナ内の全てのプロセスの kill のどれかを行います.
デフォルトでは,コンテナのクリーンなシャットダウンを (SIGPWR をコンテナに送ることで) 行い,コンテナの終了を 60 秒待ち,return します. デフォルトでは,コンテナのクリーンなシャットダウンを <command>lxc.haltsignal</command> (デフォルトでは SIGPWR) をコンテナの init プロセスに送ることでリクエストし,コンテナの終了を 60 秒待ち,return します.
コンテナがクリーンに終了するのに失敗した場合,60 秒待った後,コンテナに <command>lxc.stopsignal</command> で指定したシグナルを送り,強制的にシャットダウンします. コンテナが 60 秒の間にクリーンに終了するのに失敗した場合,<command>lxc.stopsignal</command> (デフォルトでは SIGKILL) を送り,強制的にシャットダウンします.
</para> </para>
<para> <para>
<!-- <!--
The <optional>-W</optional>, <optional>-r</optional>, <optional>-s</optional> The <optional>-W</optional>, <optional>-r</optional>,
and <optional>-k</optional> options specify the action to perform. <optional>-k</optional> and <optional>--nokill</optional>
options specify the action to perform.
<optional>-W</optional> indicates that after performing the specified <optional>-W</optional> indicates that after performing the specified
action, <command>lxc-stop</command> should immediately exit, while action, <command>lxc-stop</command> should immediately exit, while
<optional>-t TIMEOUT</optional> specifies the maximum amount of time <optional>-t TIMEOUT</optional> specifies the maximum amount of time
to wait for the container to complete the shutdown or reboot. to wait for the container to complete the shutdown or reboot.
--> -->
<optional>-W</optional>, <optional>-r</optional>, <optional>-s</optional>, <optional>-k</optional> オプションは実行する際のアクションを指定します. <optional>-W</optional>, <optional>-r</optional>, <optional>-s</optional>, <optional>-k</optional>, <optional>--nokill</optional> オプションは実行する際のアクションを指定します.
<optional>-W</optional> は,指定したアクションの後に,<command>lxc-stop</command> は速やかに終了します. <optional>-W</optional> は,指定したアクションの後に,<command>lxc-stop</command> は速やかに終了します.
一方,<optional>-t TIMEOUT</optional> はコンテナが完全にシャットダウンやリブートするのを待つ時間の最大値を設定します. 一方,<optional>-t TIMEOUT</optional> はコンテナが完全にシャットダウンやリブートするのを待つ時間の最大値を設定します.
</para> </para>
...@@ -118,36 +121,36 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp> ...@@ -118,36 +121,36 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp>
<varlistentry> <varlistentry>
<term> <term>
<option>-s,--shutdown </option> <option>-k,--kill </option>
</term> </term>
<listitem> <listitem>
<para> <para>
<!-- <!--
Only request a clean shutdown, do not kill the container tasks if the Rather than requesting a clean shutdown of the container, explicitly
clean shutdown fails. kill all tasks in the container. This is the legacy
--> <command>lxc-stop</command> behavior.
クリーンシャットダウンだけをリクエストします. -->
クリーンなシャットダウンに失敗した場合でも,コンテナのタスクを kill しません. コンテナのクリーンシャットダウンをリクエストするのでなく,明確にコンテナ内の全てのタスクを kill します.
これは,以前の <command>lxc-stop</command> の動作です.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term> <term>
<option>-k,--kill </option> <option>--nokill</option>
</term> </term>
<listitem> <listitem>
<para> <para>
<!-- <!--
Rather than requesting a clean shutdown of the container, explicitly Only request a clean shutdown, do not kill the container tasks if the
kill all tasks in the container. This is the legacy clean shutdown fails.
<command>lxc-stop</command> behavior. -->
--> クリーンなシャットダウンのみをリクエストします.
コンテナのクリーンシャットダウンをリクエストするのでなく,明確にコンテナ内の全てのタスクを kill します. クリーンなシャットダウンに失敗した場合でも,コンテナのタスクを kill しません.
これは,以前の <command>lxc-stop</command> の動作です.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term> <term>
......
...@@ -210,19 +210,50 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp> ...@@ -210,19 +210,50 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp>
</refsect2> </refsect2>
<refsect2> <refsect2>
<title><!-- Stop signal -->停止時のシグナル</title> <title><!-- Halt signal -->クリーンなシャットダウン時のシグナル</title>
<para> <para>
<!-- <!--
Allows one to specify signal name or number, sent by lxc-stop to Allows one to specify signal name or number, sent by lxc-stop to the
shutdown the container. Different init systems could use container's init process to cleanly shutdown the container. Different
different signals to perform clean shutdown sequence. Option init systems could use different signals to perform clean shutdown
allows signal to be specified in kill(1) fashion, e.g. sequence. This option allows the signal to be specified in kill(1)
SIGKILL, SIGRTMIN+14, SIGRTMAX-10 or plain number. fashion, e.g. SIGPWR, SIGRTMIN+14, SIGRTMAX-10 or plain number. The
default signal is SIGPWR.
-->
lxc-stop がコンテナをクリーンにシャットダウンするためにコンテナの init プロセスに送るシグナル名か番号を指定することができます.
init システムによって,クリーンなシャットダウンを行うために使うシグナルは異なります.
このオプションではシグナルとして kill(1) で使う形式を指定することができます.
例えば SIGKILL, SIGRTMIN+14, SIGRTMAX-10 のような形式,もしくは数字を指定します.デフォルトのシグナルは SIGPWR です.
</para>
<variablelist>
<varlistentry>
<term>
<option>lxc.haltsignal</option>
</term>
<listitem>
<para>
<!--
specify the signal used to halt the container
-->
コンテナをシャットダウンするのに使うシグナルを指定します
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect2>
<refsect2>
<title><!-- Stop signal -->強制停止時のシグナル</title>
<para>
<!--
Allows one to specify signal name or number, sent by lxc-stop to forcibly
shutdown the container. This option allows signal to be specified in
kill(1) fashion, e.g. SIGKILL, SIGRTMIN+14, SIGRTMAX-10 or plain number.
The default signal is SIGKILL.
--> -->
lxc-stop がコンテナをシャットダウンするときに送出するシグナル名か番号を指定可能です. lxc-stop がコンテナを強制的にシャットダウンするために送るシグナル名か番号を指定することができます.
様々な init システムが,クリーンなシャットダウンシーケンスを実行するために,様々なシグナルを用いる可能性があります. このオプションではシグナルとして kill(1) で使う形式を指定することができます.
オプションとして,シグナルを kill(1) の形式で指定することが可能です. 例えば SIGKILL, SIGRTMIN+14, SIGRTMAX-10 のような形式,もしくは数字を指定します.デフォルトのシグナルは SIGKILL です.
例えば SIGKILL, SIGRTMIN+14, SIGRTMAX-10 のような形式,もしくは数字を指定します.
</para> </para>
<variablelist> <variablelist>
<varlistentry> <varlistentry>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment