]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
doc: Add the description of lxc.hook.stop to Korean lxc.container.conf(5)
authorSungbae Yoo <sungbae.yoo@samsung.com>
Mon, 2 Nov 2015 08:32:48 +0000 (17:32 +0900)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 6 Nov 2015 18:28:22 +0000 (13:28 -0500)
Update for commit 0a2b5ab

Signed-off-by: Sungbae Yoo <sungbae.yoo@samsung.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
doc/ko/lxc.container.conf.sgml.in

index f06e5593da3d7c711da58c8bc2f5edb7af78549b..741003be742ffe0105021e91e04293b7fe30b410 100644 (file)
@@ -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>
@@ -1936,6 +1939,31 @@ mknod errno 0
          </listitem>
        </varlistentry>
       </variablelist>
+      <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>