Comment 3 for bug 838968

Revision history for this message
Scott Moser (smoser) wrote :

We could fairly easily write a helper program that would get run from /etc/network/if-up.d/upstart and take care of emitting the event.
Something like the following at the end of that script, replacing our 'all_interfaces_up' stanza.

if mkdir /var/run/network/static-network-up-daemon 2>/dev/null; then
   wait-for-interfaces-up --markdir=/var/run/network/static-network-up-emitted \
      --pid=/var/run/network/static-network-up-daemon/pid \
      --emit="static-network-up" \
      $(get_auto_interfaces)
fi

That program would just have to sit and wait until all the interfaces it was told were up, and then emit the signal.