On Mon, Jul 17, 2017 at 01:53:06PM +0200, Wouter Verhelst wrote:

> > A long time ago I created a PoC for ifupdown-wait-online [1]. It was
> > rather simple though. I simply blocked until at least one interface was
> > configured. One would probably want something more sophisticated.
> 
> It's a good start though, and would probably work for 99% of cases.
> Let's not make the perfect be the enemy of the good?

I don't know about that 99% value. The problem is usually seen
when mounting remote filesystems or when running some services that want
to bind to a specific IP address but can't be bothered to use
IP_FREEBIND. You want to wait for an external host to become reachable,
or a specific IP address to be assigned locally.

Waiting until at least one interface is configured is quite naive: it
will probably work very well when you only have one interface, but what
if you have multiple interfaces? In that case, I'd rather have it block
until all interfaces are up. This will still cover the single interface
situation.

In any case, I'll add the script.

-- 
Met vriendelijke groet / with kind regards,
      Guus Sliepen <[email protected]>

Attachment: signature.asc
Description: PGP signature

Reply via email to