document lxc.rebootsignal

Also fix some minor indentation mishaps since we're here.

Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
Bogdan Purcareata 2015-02-16 09:38:35 +00:00 committed by Stéphane Graber
parent dd267776ee
commit 936762f3fb
2 changed files with 67 additions and 43 deletions

View File

@ -70,7 +70,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
the container's init process, waiting up to 60 seconds for the container the container's init process, waiting up to 60 seconds for the container
to exit, and then returning. If the container fails to cleanly exit in to exit, and then returning. If the container fails to cleanly exit in
60 seconds, it will be sent the <command>lxc.stopsignal</command> 60 seconds, it will be sent the <command>lxc.stopsignal</command>
(defaults to SIGKILL) to force it to shut down. (defaults to SIGKILL) to force it to shut down. A request to reboot will
send the <command>lxc.rebootsignal</command> (defaults to SIGINT) to the
container's init process.
</para> </para>
<para> <para>
The <optional>-W</optional>, <optional>-r</optional>, The <optional>-W</optional>, <optional>-r</optional>,

View File

@ -158,46 +158,68 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
<refsect2> <refsect2>
<title>Halt signal</title> <title>Halt signal</title>
<para> <para>
Allows one to specify signal name or number, sent by lxc-stop to the Allows one to specify signal name or number, sent by lxc-stop to the
container's init process to cleanly shutdown the container. Different container's init process to cleanly shutdown the container. Different
init systems could use different signals to perform clean shutdown init systems could use different signals to perform clean shutdown
sequence. This option allows the signal to be specified in kill(1) sequence. This option allows the signal to be specified in kill(1)
fashion, e.g. SIGPWR, SIGRTMIN+14, SIGRTMAX-10 or plain number. The fashion, e.g. SIGPWR, SIGRTMIN+14, SIGRTMAX-10 or plain number. The
default signal is SIGPWR. default signal is SIGPWR.
</para> </para>
<variablelist> <variablelist>
<varlistentry> <varlistentry>
<term> <term>
<option>lxc.haltsignal</option> <option>lxc.haltsignal</option>
</term> </term>
<listitem> <listitem>
<para> <para>
specify the signal used to halt the container specify the signal used to halt the container
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
</variablelist>
</refsect2>
<refsect2>
<title>Reboot signal</title>
<para>
Allows one to specify signal name or number, sent by lxc-stop to
reboot the container. This option allows signal to be specified in
kill(1) fashion, e.g. SIGTERM, SIGRTMIN+14, SIGRTMAX-10 or plain number.
The default signal is SIGINT.
</para>
<variablelist>
<varlistentry>
<term>
<option>lxc.rebootsignal</option>
</term>
<listitem>
<para>
specify the signal used to reboot the container
</para>
</listitem>
</varlistentry>
</variablelist> </variablelist>
</refsect2> </refsect2>
<refsect2> <refsect2>
<title>Stop signal</title> <title>Stop signal</title>
<para> <para>
Allows one to specify signal name or number, sent by lxc-stop to forcibly Allows one to specify signal name or number, sent by lxc-stop to forcibly
shutdown the container. This option allows signal to be specified in shutdown the container. This option allows signal to be specified in
kill(1) fashion, e.g. SIGKILL, SIGRTMIN+14, SIGRTMAX-10 or plain number. kill(1) fashion, e.g. SIGKILL, SIGRTMIN+14, SIGRTMAX-10 or plain number.
The default signal is SIGKILL. The default signal is SIGKILL.
</para> </para>
<variablelist> <variablelist>
<varlistentry> <varlistentry>
<term> <term>
<option>lxc.stopsignal</option> <option>lxc.stopsignal</option>
</term> </term>
<listitem> <listitem>
<para> <para>
specify the signal used to stop the container specify the signal used to stop the container
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
</variablelist> </variablelist>
</refsect2> </refsect2>
@ -211,16 +233,16 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Defaults to: /sbin/init Defaults to: /sbin/init
</para> </para>
<variablelist> <variablelist>
<varlistentry> <varlistentry>
<term> <term>
<option>lxc.init_cmd</option> <option>lxc.init_cmd</option>
</term> </term>
<listitem> <listitem>
<para> <para>
Absolute path from container rootfs to the binary to use as init. Absolute path from container rootfs to the binary to use as init.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
</variablelist> </variablelist>
</refsect2> </refsect2>