[lxc-devel] [PATCH] doc: Add the description of lxc.hook.stop to Korean lxc.container.conf(5)
Stéphane Graber
stgraber at ubuntu.com
Fri Nov 6 18:15:33 UTC 2015
On Mon, Nov 02, 2015 at 05:32:48PM +0900, Sungbae Yoo wrote:
> Update for commit 0a2b5ab
>
> Signed-off-by: Sungbae Yoo <sungbae.yoo at samsung.com>
Acked-by: Stéphane Graber <stgraber at ubuntu.com>
>
> diff --git a/doc/ko/lxc.container.conf.sgml.in b/doc/ko/lxc.container.conf.sgml.in
> index f06e559..741003b 100644
> --- a/doc/ko/lxc.container.conf.sgml.in
> +++ b/doc/ko/lxc.container.conf.sgml.in
> @@ -1800,9 +1800,12 @@ mknod errno 0
> <listitem><para> Container name. </para></listitem>
> <listitem><para> Section (always 'lxc'). </para></listitem>
> <listitem><para> The hook type (i.e. 'clone' or 'pre-mount'). </para></listitem>
> - <listitem><para> Additional arguments In the
> + <listitem><para> Additional arguments. In the
> case of the clone hook, any extra arguments passed to
> - lxc-clone will appear as further arguments to the hook. </para></listitem>
> + 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. </para></listitem>
> </itemizedlist>
> The following environment variables are set:
> <itemizedlist>
> @@ -1819,7 +1822,7 @@ mknod errno 0
> <listitem><para>컨테이너 이름</para></listitem>
> <listitem><para>섹션 (보통 'lxc')</para></listitem>
> <listitem><para>훅 종류 ('clone', 'pre-mount' 등)</para></listitem>
> - <listitem><para>clone 훅일 경우 추가인수. lxc-clone에 전달된 인수가 훅으로 전달된다.</para></listitem>
> + <listitem><para>추가 인수. clone 훅일 경우, lxc-clone에게 넘였던 추가 인수들이 넘어온다. stop 훅일 경우, 컨테이너의 네임스페이스 각각에 대한 이름과 파일 디스크립터의 경로가 넘어온다.</para></listitem>
> </itemizedlist>
> 환경 변수 :
> <itemizedlist>
> @@ -1939,6 +1942,31 @@ mknod errno 0
> <variablelist>
> <varlistentry>
> <term>
> + <option>lxc.hook.stop</option>
> + </term>
> + <listitem>
> + <para>
> + <!--
> + A hook to be run in the host's namespace with references
> + to the container's namespaces after the container has been shut
> + down. For each namespace an extra argument is passed to the hook
> + containing the namespace's type and a filename that can be used to
> + obtain a file descriptor to the corresponding namespace, separated
> + by a colon. The type is the name as it would appear in the
> + <filename>/proc/PID/ns</filename> directory.
> + For instance for the mount namespace the argument usually looks
> + like <filename>mnt:/proc/PID/fd/12</filename>.
> + -->
> + 컨테이너가 종료된 후 컨테이너 네임스페이스에 대한 참조를 넘겨받는 호스트의 네임스페이스에서 실행되는 훅.
> + 각각의 네임스페이스들은 훅에 추가인수로 넘겨진다. 해당 인수는 네임스페이스의 이름과 네임스페이스의 파일 디스크립터를 얻어올 수 있는 파일이름을 가지고 있으며, 콜론으로 구분된다.
> + 네임스페이스 이름은 <filename>/proc/PID/ns</filename> 디렉토리 내의 파일 이름이다. 예를 들어 마운트 네임스페이스에 대응하는 인수는 일반적으로 <filename>mnt:/proc/PID/fd/12</filename>와 같이 된다.
> + </para>
> + </listitem>
> + </varlistentry>
> + </variablelist>
> + <variablelist>
> + <varlistentry>
> + <term>
> <option>lxc.hook.post-stop</option>
> </term>
> <listitem>
> --
> 1.9.1
>
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel
--
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20151106/978c0f7b/attachment.sig>
More information about the lxc-devel
mailing list