Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 247913

Summary: Parallel startup should not wait for non required net services
Product: Gentoo Linux Reporter: crusaderky
Component: [OLD] baselayoutAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal CC: roy
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description crusaderky 2008-11-21 11:53:18 UTC
I've got
baselayout-2.0.0
openrc-0.3.0-r1
gentoo 2008.0 amd64

In /etc/rc.conf, i've got:
rc_parallel="YES"
rc_depend_strict="NO"

In /etc/conf.d/net:
config_eth0="dhcp"
dhcpcd_eth0="-t 120"
(timeout has been exagerately prolonged to make this bug more evident)

# rc-update -v show | grep net
            net.wlan0 |                              
                local | default             nonetwork
             net.eth0 |                              
               net.lo |         boot                 


My network cable is unplugged. This is a very typical laptop configuration.

RESULT:
net.eth0 is brought up in the boot runlevel as a device initiated service.
After all other services in the boot runlevel have started, the system hangs up waiting for the dhcp timeout, and only after that it continues with the default runlevel.

EXPECTED RESULT:
As I stated rc_depend_strict="NO" and net.lo is already up, the default runlevel should not wait for net.eth0 to get up (or timeout trying).
Comment 1 Roy Marples 2008-11-23 16:42:47 UTC
Install either netplugd or ifplugd to manage the link for you.
Or if you use dhcpcd-4, use the -b flag to get it to background instantly and it will then manage the link.
Comment 2 crusaderky 2009-02-27 13:49:44 UTC
With dhcpcd-4, I set 
dhcpcd_eth0="-t 0 -b"
and it works. Thanks!