05-03-2008
92,
2
Join Date: Jul 2007
Last Activity: 22 August 2014, 3:43 PM EDT
Location: Cloud 9
Posts: 92
Thanks Given: 2
Thanked 2 Times in 2 Posts
When is 'ifup' really done?
I have been looking in the scripts for interface management, in an effort to kick off a script of my own on any "significant network event" (I will qualify that in a bit)
I managed to add a check to tell netplugd to run my script every time there is a hot-plug event. Now I need to make it so my script is also kicked off on a 'service network restart' or simply an 'ifup ethX'... which seemed doable to me...
Looking in the ifup script, I saw the ifup-eth script get kicked off, from there, the ifup-post script, to the ifup-local script (which doesn't exist, so isn't run)... stupid me, I made the assumption that "post" meant "after", and instead of seeing my script run, I see messages like "arping: recvfrom: Network is down" (arping is being called from my script)
btw - the first exec of my script happens *after* the interfaces are raised, but only because I do it via the boot-order rc3.d script-list
Any idea how I can make my script *actually* kick off after the interface is *actually* up?