mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-06-15 17:49:52 +00:00
document the stop hook
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
parent
b3286b628b
commit
0a2b5ab1e7
@ -1312,9 +1312,12 @@ mknod errno 0
|
|||||||
<listitem><para> Container name. </para></listitem>
|
<listitem><para> Container name. </para></listitem>
|
||||||
<listitem><para> Section (always 'lxc'). </para></listitem>
|
<listitem><para> Section (always 'lxc'). </para></listitem>
|
||||||
<listitem><para> The hook type (i.e. 'clone' or 'pre-mount'). </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
|
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>
|
</itemizedlist>
|
||||||
The following environment variables are set:
|
The following environment variables are set:
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
@ -1408,6 +1411,26 @@ mknod errno 0
|
|||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
</variablelist>
|
</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>.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
</variablelist>
|
||||||
<variablelist>
|
<variablelist>
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
|
Loading…
Reference in New Issue
Block a user