Re: [gentoo-user] fine grained net dependancies

2006-12-07 Thread Mike Williams
On Thursday 07 December 2006 01:48, Thomas Rösner wrote:
  At some point I was sure baselayout supported full runscript depend(){}
  syntax, in the form depend_${iface}(){}.

 That'd be nice! I didn't know it ever worked. It would be nice if this
 could be made to work again.

There is support for depend_${iface}(){}, if the function is defined it's 
executed. I haven't dug deeply enough to see why my before is seemingly 
ignored. It's probably only effective to net scripts, not run scripts in 
general.

  But heartbeat continues to start after the first net service starts, so
  it fails to start as the interface it needs doesn't exist yet.

 Why not set RC_NET_STRICT_CHECKING=yes in /etc/conf.d/rc?

Another excellent suggestion, thanks!

-- 
Mike Williams

-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] fine grained net dependancies

2006-12-06 Thread Mike Williams
Hey,

At some point I was sure baselayout supported full runscript depend(){} 
syntax, in the form depend_${iface}(){}.
However it's not working quite how I would like it to.
I *need* heartbeat to start *after* br0. (My network config is quite complex, 
br0 is a bridge of bond0 and bond4, bonds 0 and 4 being composed of eths 9, 
2, 6, and 1 respectively.)

I have tried adding
depend_br0(){
before heartbeat
}
I've used both the old and new depend syntax to make the bonds need/NEED the 
eth interfaces, and the bridge need/NEED the bonds.

But heartbeat continues to start after the first net service starts, so it 
fails to start as the interface it needs doesn't exist yet.

I'd really rather not modify the heartbeat init script if at all possible.

Thanks

-- 
Mike Williams
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] fine grained net dependancies

2006-12-06 Thread Mike Williams
On Wednesday 06 December 2006 20:51, Neil Bothwick wrote:
 On Wed, 6 Dec 2006 20:18:11 +, Mike Williams wrote:
  I *need* heartbeat to start *after* br0.

 You could do his from the postup function in /etc/conf.d/net

 postup() {
   [ ${IFACE} == br0 ]  /etc/init.d/heartbeat start
 }

And take heartbeat out of the default runlevel, clever.

Thanks

-- 
Mike Williams
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] fine grained net dependancies

2006-12-06 Thread Thomas Rösner

Mike Williams wrote:

Hey,

At some point I was sure baselayout supported full runscript depend(){} 
syntax, in the form depend_${iface}(){}.
  


That'd be nice! I didn't know it ever worked. It would be nice if this 
could be made to work again.



I have tried adding
depend_br0(){
before heartbeat
}
I've used both the old and new depend syntax to make the bonds need/NEED the 
eth interfaces, and the bridge need/NEED the bonds.


But heartbeat continues to start after the first net service starts, so it 
fails to start as the interface it needs doesn't exist yet.
  


Why not set RC_NET_STRICT_CHECKING=yes in /etc/conf.d/rc?

Regards,
   Thomas
--
gentoo-user@gentoo.org mailing list