I'm trying to start an upstart job after making sure networking interfaces are up.
This is what I have now:
start on started network-interface INTERFACE=eth0
stop on runlevel [!2345]
pre-start script
test -x /usr/sbin/dibbler-client || { stop; exit 0; }
test -c /dev/null || { stop; exit 0; }
end script
exec /usr/sbin/dibbler-client start 2>&1 > /dev/null
The problem is that dibbler is obviously started too soon since i'm getting Client Critical Interface eth0/2 is down or doesn't have any link-local address.
Is there a simple way of solving this with events or i'd have to do it in the pre-start
?
I'm using only /etc/networking/interfaces and the networking script for configuration. So no network manager.