Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 247913 - Parallel startup should not wait for non required net services
Summary: Parallel startup should not wait for non required net services
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-21 11:53 UTC by crusaderky
Modified: 2009-02-27 13:49 UTC (History)
1 user (show)

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 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!