wait for dhcp to configure an interface - how?
James Hunt
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.
Hi Tim,
start on net-device-up IFACE=eth0
(run "man 7 upstart-events" on Ubuntu natty). Also see:
http://upstart.ubuntu.com/cookbook/#to-start-a-job-when-eth0-is-available
Regards,
James.
--
James Hunt
____________________________________
http://upstart.ubuntu.com/cookbook
http://upstart.ubuntu.com/cookbook/upstart_cookbook.pdf
More information about the upstart-devel
mailing list