]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
set-lifecycle-action: add description of type and action
authorChen Hanxiao <chenhanxiao@gmail.com>
Thu, 21 Jun 2018 11:28:55 +0000 (19:28 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 26 Jun 2018 12:10:17 +0000 (14:10 +0200)
In [1], <type> are described as "on_poweroff", "on_reboot",
"on_crash". but we accept "poweroff", "reboot" and "crash".
This patch adds documentation for them.

[1]: https://libvirt.org/formatdomain.html#elementsEvents

Signed-off-by: Chen Hanxiao <chenhanxiao@gmail.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
tools/virsh.pod

index c9ef4f137c3e9293c1de8d7cbd6561c003f3ea79..83989437b21b4da89bfcea35c92513b52053f03d 100644 (file)
@@ -2417,9 +2417,11 @@ the B<virsh dominfo> command.
 =item B<set-lifecycle-action> I<domain> I<type> I<action>
 [[I<--config>] [I<--live>] | [I<--current>]]
 
-Set the lifecycle I<action> for specified lifecycle I<type>. For the list of
-lifecycle types and actions and possible combinations see the documentation at
-L<https://libvirt.org/formatdomain.html#elementsEvents>.
+Set the lifecycle I<action> for specified lifecycle I<type>.
+The valid types are "poweroff", "reboot" and "crash", and for each of
+them valid I<action> is one of "destroy", "restart", "rename-restart",
+"preserve".  For I<type> "crash", additional actions "coredump-destroy"
+and "coredump-restart" are supported.
 
 =item B<set-user-password> I<domain> I<user> I<password> [I<--encrypted>]