wait for dhcp to configure an interface - how?
james.hunt at ubuntu.com
Tue Aug 23 09:32:36 UTC 2011
On 23/08/11 09:24, Tim Gopp wrote:
> Hi all,
> for starting a network service I have to wait until dhcp has configured the
> interface (eth0).
> Anyone has ideas how to archive this with upstart? Currently I simply use a
> "sleep 5" in the pre-start but this is not reliable.
start on net-device-up IFACE=eth0
(run "man 7 upstart-events" on Ubuntu natty). Also see:
More information about the upstart-devel