From: Wolfgang Bumiller Date: Tue, 6 Oct 2015 08:01:06 +0000 (+0200) Subject: document the stop hook X-Git-Tag: lxc-2.0.0.beta1~98 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a2b5ab1e79912cd6afa52c829a3444da701a828;p=thirdparty%2Flxc.git document the stop hook Signed-off-by: Wolfgang Bumiller Acked-by: Serge E. Hallyn --- diff --git a/doc/lxc.container.conf.sgml.in b/doc/lxc.container.conf.sgml.in index f81649113..90ffefa3c 100644 --- a/doc/lxc.container.conf.sgml.in +++ b/doc/lxc.container.conf.sgml.in @@ -1312,9 +1312,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: @@ -1408,6 +1411,26 @@ mknod errno 0 + + + + + + + + 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 + /proc/PID/ns directory. + For instance for the mount namespace the argument usually looks + like mnt:/proc/PID/fd/12. + + + +