From: KATOH Yasufumi Date: Fri, 9 Oct 2015 06:14:22 +0000 (+0900) Subject: doc: Add the description of lxc.hook.stop to Japanese lxc.container.conf(5) X-Git-Tag: lxc-2.0.0.beta1~86 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0b2a43477227f36c1415d1403596d17490fad8a;p=thirdparty%2Flxc.git doc: Add the description of lxc.hook.stop to Japanese lxc.container.conf(5) Signed-off-by: KATOH Yasufumi Acked-by: Stéphane Graber --- diff --git a/doc/ja/lxc.container.conf.sgml.in b/doc/ja/lxc.container.conf.sgml.in index 45e5c3192..7b46fffdb 100644 --- a/doc/ja/lxc.container.conf.sgml.in +++ b/doc/ja/lxc.container.conf.sgml.in @@ -1850,9 +1850,12 @@ mknod errno 0 Container name. Section (always 'lxc'). The hook type (i.e. 'clone' or 'pre-mount'). - Additional arguments In the + Additional arguments. In the case of the clone hook, any extra arguments passed to - lxc-clone will appear as further arguments to the hook. + lxc-clone will appear as further arguments to the hook. + In the case of the stop hook, paths to filedescriptors + for each of the container's namespaces along with their types + are passed. The following environment variables are set: @@ -1868,7 +1871,7 @@ mknod errno 0 コンテナ名 セクション (常に 'lxc') フックのタイプ ('clone' や 'pre-mount' など) - 追加の引数。clone フックの場合、lxc-clone に渡される追加の引数は、フックへの引数として追加されます。 + 追加の引数。clone フックの場合、lxc-clone に渡される追加の引数は、フックへの引数として追加されます。stop フックの場合は、コンテナの名前空間のそれぞれに対するファイルディスクリプタへのパスが、名前空間名とともに渡されます。 以下の環境変数がセットされます。 @@ -1988,6 +1991,32 @@ mknod errno 0 + + + + + + + + + コンテナのシャットダウン後、コンテナの名前空間への参照とともに、ホストの名前空間で実行されるフックです。 + それぞれの名前空間に対応する追加の引数がフックに渡されます。その引数にはコロンで区切られた名前空間のタイプ名とファイル名が含まれており、ファイル名は名前空間に対するファイルディスクリプタを取得するのに使えます。 + タイプ名は /proc/PID/ns ディレクトリ内のファイル名です。 + 例えば、マウント名前空間に対応する引数は通常は mnt:/proc/PID/fd/12 のようになります。 + + + +