[Ovirt-devel] [PATCH node] Kill persistent dhclient on the temporary interface
Arthur Clément
aclement at linagora.com
Thu Jul 15 12:30:01 UTC 2010
Works great. I'll submit the patch ASAP
On mardi 13 juillet 2010 19:35:20 Alan Pevec wrote:
> On Tue, Jul 13, 2010 at 5:55 PM, Alan Pevec <apevec at gmail.com> wrote:
> > - /sbin/dhclient $1
> > + /sbin/dhclient -1 $1
> >
> > then there wouldn't be dhclient left running.
>
> I jumped the gun, -1 still keeps dhclient running in the background if
> there wasn't failure.
> Correct patch is:
> - /sbin/dhclient $1
> + /sbin/dhclient -1 $1 \
> + && [ -f /var/run/dhclient.pid ] \
> + && kill $(cat /var/run/dhclient.pid)
>
> Address is already set when dhclient returns, so we can kill it
> immediately.
--
Arthur CLEMENT
Linagora Paris
More information about the ovirt-devel
mailing list