openrc-discuss

Re: net dependency behaviour

The Peach

Sun Jan 25 18:04:14 2009

On Sun, 25 Jan 2009 11:13:18 +0000
Roy wrote:

> Is either wpa_supplicant or netplug actually running for those interfaces?

I just tried the following:
#1
I remove net.eth1 from the default runlevel.
I restart the machine and THEN plug in the cable: nothing happens.
messages will show nothing and
"rc-status | grep eth1" returns nothing.
I issue "/etc/init.d/net.eth1 start", I can see netplug outputting
something on messages and I can see net.eth1 listed under "hotplugged"
runlevel, as "started". If I remove the cable, net.eth1 remains listed
under "hotplugged" and "manual" runlevels, with netplug working as
expected.

#2
again with net.eth1 not in default runlevel.
restart the machine and NOT plug in the cable:
"rc-status | grep eth1" returns nothing.
I issue "/etc/init.d/net.eth1 start": I can see it only under "manual"
runlevel and messages states: "net.eth1 has started, but is inactive",
no messages from netplug. I plug in the cable: netplugd starts to
output in messages, and now I can see net.eth1 listed only under
"hotplugged" runlevel as "started".

#3
rc-update add net.eth1 default
reboot the machine without the cable inserted.
now I can see net.eth1 listed under "default" as inactive.
Plug in the cable, netplugd start to output and net.eth1 is listed both
under the "default" and the "hotplugged" runlevels.
If I remove the cable, net.eth1 remains listed under "hotplugged".

Seems like net scripts can't be hotplugged if not explicitly added to a
runlevel.
This could be nothing wrong, but since openrc-3* it was working
differently. The real problem, keeping in mind that I *could* need the
dependencies for the net services, is that with just one net script
started all the net services still wait on the other -not started- net
script.
obviously: 
"net script" == net.eth*
"net service" == apache, tor, ... 

Am I missing something?
what is the hotplugged runlevel for?

-- 
Matteo 'Peach' Pescarin

References:
net dependency behaviourThe Peach
Re: net dependency behaviourRoy Marples
Re: net dependency behaviourThe Peach
Re: net dependency behaviourRoy Marples
Archive administrator: postmaster@marples.name