Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 49134 - net.wlan0 started (and not net.eth0) does not fullfill net dependency in init-scripts.
Summary: net.wlan0 started (and not net.eth0) does not fullfill net dependency in init...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 66472
  Show dependency tree
 
Reported: 2004-04-27 01:29 UTC by klavs klavsen
Modified: 2005-01-30 23:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description klavs klavsen 2004-04-27 01:29:43 UTC
Hi guys,

I have a laptop, where I mostly use my wireless - but I have both.
I use the wireless-config ebuild from the forums (0.2.4) and using it, I simply copy (or symlink) /etc/init.d/net.eth0 to /etc/init.d/net.wlan0.

The problem I'm seeing, is that if I start f.ex. /etc/init.d/ntp-client (and other services too) that need net - they insist on starting net.eth0 - even though net.wlan0 is started.

this leads me to conclude that starting the net.wlan0 for some reason does not fullfill the net dependency, which it should.

Reproducible: Always
Steps to Reproduce:
1. be sure to have two interfaces net.eth0 net.if0
2. stop net.eth0
3. start ntp-client

Actual Results:  
net.eth0 is started.

Expected Results:  
ntp-client should just have started - as net.if0 was up. (my net.wlan0).
Comment 1 Georg Müller 2004-07-17 18:53:38 UTC
I have the same problem.

I have found a hard coded net.eth0 in /var/lib/init.d, but it is dynamicly created and I don't know where...
Comment 2 Roy Marples (RETIRED) gentoo-dev 2005-01-07 07:19:48 UTC
Is net.eth0 in your default runlevel?

Also, check the setting of RC_NET_STRICT_CHECKING in /etc/conf.d/rc as this controlls the behaviour you are seeing.
Comment 3 klavs klavsen 2005-01-08 00:50:03 UTC
Hi - RF_NET_STRICT_CHECKING was set to no (default) which should mean one net started is enough.

I have the same problem with the fact that I use ifplugd (because eth0 is not always cabled, and Gentoo currently can't be told to "start eth0 if there's a cable - otherwise try wlan0" which is IMHO a big lack :(

When I restart f.ex. slapd on my portable (or any other service that depends on net) it INSISTS on starting my net.wlan0 (as it is the only one set to be started upon boot - eth0 is handled by ifplugd).

Problem is - when I'm using eth0 - my net.wlan0 is usually not up - and so I have to wait for that to timeout :(

I'd like portage to resolve the dependency so EITHER net.eth0 or net.wlan0 resolves the dependency on net..
AFAIK this is a missing feature in Gentoo's init system.

Perhaps the best way was to make ifplugd work with gentoo's init system - or make gentoos init handle the above mentioned "start this if this=true else try this".
Comment 4 Roy Marples (RETIRED) gentoo-dev 2005-01-13 23:56:20 UTC
This may be fixed by bug #77839 - however you will need baselayout-1.11.8 (any -rx version included) to apply the patch
Comment 5 Roy Marples (RETIRED) gentoo-dev 2005-01-30 23:58:11 UTC
Fixed by baselayout-1.11.9