<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Mar 9, 2015 at 3:14 PM, Ido Barkan <span dir="ltr"><<a href="mailto:ibarkan@redhat.com" target="_blank">ibarkan@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All,<br>
<br>
I am a VDSM developer at Ovirt project.<br>
<br>
VDSM is a daemon which is run as a systemd unit and manages a RHEV hypervisor.<br>
During it's start up, under ExecStartPre the unit runs an initialization script, that calls<br>
a part of VDSM in order to configure networking on the host. During the network initialization<br>
'ifup' is called for interfaces with DHCP defined as their boot protocol. dhclient then runs,<br>
assigns an IP address to the interface and .... gets killed!<br></blockquote><div><br></div><div>ExecStartPre? Yes, if I remember correctly, systemd kills all leftover ExecStartPre processes before starting the main daemon. (SIGTERM first, though.)</div><div><br></div><div>It's intentional – ExecStartPre isn't the right place for long-running processes. Isn't there already an ifup.service or ifup@.service that VDSM could depend on? [Requires=, After=, etc.]</div><div><br></div><div>If not, could you write one (e.g. vdsm-ifup) and *then* make VDSM depend on it?</div></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Mantas Mikulėnas <<a href="mailto:grawity@gmail.com" target="_blank">grawity@gmail.com</a>></div></div>
</div></div>