<div dir="ltr"><div dir="ltr">New code tries SIGTERM first, with a grace period of 30 seconds: <a href="https://github.com/ManageIQ/manageiq-content/pull/433" target="_blank">https://github.com/ManageIQ/manageiq-content/pull/433</a>.</div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Sep 26, 2018 at 6:10 PM Richard W.M. Jones <<a href="mailto:rjones@redhat.com" target="_blank">rjones@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, Sep 26, 2018 at 04:57:19PM +0200, Fabien Dupont wrote:<br>
> It's not virt-v2v-wrapper that kills virt-v2v, it's ManageIQ. We have the<br>
> PID from virt-v2v-wrapper state file. What would be the preferred way<br>
> to interrupt it ?<br>
<br>
It's not too nice to send kill -9 to virt-v2v because it means none of<br>
the at-exit handlers get to run, so it will leave temporary files all<br>
over the place.  It's better to send an ordinary kill signal<br>
(eg. SIGTERM).  If virt-v2v doesn't exit after some grace period,<br>
eg. 30 seconds, then it's a bug, but maybe you could then send<br>
SIGKILL.<br>
<br>
This is actually another thing which a temporary systemd unit will<br>
solve for us:<br>
<a href="https://www.freedesktop.org/software/systemd/man/systemd.kill.html" rel="noreferrer" target="_blank">https://www.freedesktop.org/software/systemd/man/systemd.kill.html</a><br>
<br>
Rich.<br>
<br>
-- <br>
Richard Jones, Virtualization Group, Red Hat <a href="http://people.redhat.com/~rjones" rel="noreferrer" target="_blank">http://people.redhat.com/~rjones</a><br>
Read my programming and virtualization blog: <a href="http://rwmj.wordpress.com" rel="noreferrer" target="_blank">http://rwmj.wordpress.com</a><br>
virt-top is 'top' for virtual machines.  Tiny program with many<br>
powerful monitoring features, net stats, disk stats, logging, etc.<br>
<a href="http://people.redhat.com/~rjones/virt-top" rel="noreferrer" target="_blank">http://people.redhat.com/~rjones/virt-top</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_7192427590242685408gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><p style="margin:0px!important;padding:0px!important"><b style="font-family:arial,helvetica,sans-serif;font-size:small"><font color="#cc0000"><span style="margin:0px!important;padding:0px!important">Fabien</span> <span style="margin:0px!important;padding:0px!important">Dupont</span></font></b><br></p><p style="color:rgb(0,0,0);margin:0px!important;padding:0px!important"></p><p style="font-size:small;color:rgb(0,0,0);margin:0px!important;padding:0px!important"><span style="font-family:arial,helvetica,sans-serif;font-size:x-small">PRINCIPAL SOFTWARE ENGINEER</span><font size="1" face="arial, helvetica, sans-serif"><br style="margin:0px!important;padding:0px!important"></font></p><p style="font-size:small;margin:0px!important;padding:0px!important"><font face="arial, helvetica, sans-serif" size="1" color="#000000">Red Hat - Solutions Engineering</font></p><p style="margin:0px!important;padding:0px!important"><font size="1" face="arial, helvetica, sans-serif"><span style="margin:0px!important;padding:0px!important"><span style="margin:0px!important;padding:0px!important"><a href="mailto:fabien@redhat.com" target="_blank"><font color="#0b5394">fabien@redhat.com</font></a></span><font color="#000000">     </font></span><span style="margin:0px!important;padding:0px!important"><font color="#000000">M: </font><a href="tel:+33662784971" style="margin:0px!important;padding:0px!important" target="_blank"><font color="#0b5394">+33 (0) 662 784 971</font></a></span></font></p><p style="margin:0px!important;padding:0px!important"><span style="margin:0px!important;padding:0px!important"><font size="1" face="arial, helvetica, sans-serif"><a href="http://redhat.com" style="color:rgb(0,0,0)" target="_blank"><img src="https://www.redhat.com/profiles/rh/themes/redhatdotcom/img/logo-red-hat-black.png" width="96" height="30"></a><font color="#000000">  </font><span style="margin:0px!important;padding:0px!important"><font color="#cc0000"><b>TRIED. TESTED. TRUSTED.</b></font></span></font></span></p><p style="color:rgb(0,0,0);margin:0px!important;padding:0px!important"><font size="1" face="arial, helvetica, sans-serif"><span style="margin:0px!important;padding:0px!important"></span></font></p><div style="color:rgb(0,0,0);margin:0px!important;padding:0px!important"><div style="margin:0px!important;padding:0px!important"><font size="1" face="arial, helvetica, sans-serif">Twitter: <a href="https://twitter.com/redhatway" target="_blank">@redhatway</a> | Instagram: <a href="https://www.instagram.com/redhatinc/" target="_blank">@redhatinc</a> | Snapchat: @redhatsnaps</font></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>