bin/98577: the link check by dhclient slows down booting on a laptop
Nick Hibma
n_hibma at FreeBSD.org
Mon Jun 5 22:49:50 PDT 2006
>Number: 98577
>Category: bin
>Synopsis: the link check by dhclient slows down booting on a laptop
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Tue Jun 06 05:30:17 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Nick Hibma
>Release: FreeBSD 6.1-RC i386
>Organization:
>Environment:
System: FreeBSD hind.van-laarhoven.org 6.1-RC FreeBSD 6.1-RC #15: Tue May 30 12:01:11 CEST 2006 root at hind.van-laarhoven.org:/usr/src/sys/i386/compile/HIND i386
>Description:
Dhclient is nowadays waiting for the link to come up before continuing. That
makes the -b (become a daemon immediately) less useful. Ctrl-C at that point
makes the whole rc.d script fail.
>How-To-Repeat:
Set
background_dhclient="YES"
in rc.conf, remove ethernet plug (I assume that it is a rl0 iface) and run
/etc/rc.d/netif restart rl0
Notice the long wait.
>Fix:
Move the checking for link (/usr/src/sbin/dhclient/dhclient.c) after the first
go_daemon case. Problems might be chroot and fork_privchild. Untested.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list