Date: Sun, 16 Aug 2009 19:58:29 -0700 From: David Wolfskill <david@catwhisker.org> To: Kamigishi Rei <spambox@haruhiism.net> Cc: FreeBSD Current <freebsd-current@freebsd.org> Subject: Re: rc(8) regression. What's the story? Message-ID: <20090817025829.GH74242@bunrab.catwhisker.org> In-Reply-To: <4A88C31C.70204@haruhiism.net> References: <F61821DF-7187-4C00-A691-0E4D88E83D4F@mac.com> <E04E14BF-8749-47CF-9D47-B5D5AD6A0B6E@lassitu.de> <90E06EA7-4D27-411C-962F-BBCB6D6A13C6@mac.com> <4A88C31C.70204@haruhiism.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--AqCDj3hiknadvR6t Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Aug 17, 2009 at 06:40:28AM +0400, Kamigishi Rei wrote: > ... > This happens for me with some interfaces (namely, bge and em) as well;=20 > media state is detected with a slight delay and therefore by the time=20 > ntpdate is started we don't have an IP address yet. > ... Perhaps it might be appropriate to ensure that we have an IP address before starting ntpd, then? As far as the actual check, examining the output of "netstat -nif inet" or "netstat -nif inet6" is generally what I'd normally do. Possibilities that come to mind: * Modify rc.d/netif to ensure that an IP address is assigned before it exits (assuming(!) that at least one interface has come up. * Modify rc.d/ntpd to ensure that an IP address is assigned before it tries to start ntpd(8). * Create a new rc.d script that sleeps until an IP address is assigned. I think the latter would be most flexible, as the appropriate keywords could be specified for precisely those rc.d/* scripts that actually need an IP address in order to function, though implementing it might engender rather more churn in /etc/rc.d/* than folks might prefer. Peace, david --=20 David H. Wolfskill david@catwhisker.org Depriving a girl or boy of an opportunity for education is evil. See http://www.catwhisker.org/~david/publickey.gpg for my public key. --AqCDj3hiknadvR6t Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iEYEARECAAYFAkqIx1QACgkQmprOCmdXAD3xEgCcC0X76qfyXZIP4JTP6pdhwam9 00kAmwdbJnW+kAkG+zXlaey9+BNMyywR =BdY8 -----END PGP SIGNATURE----- --AqCDj3hiknadvR6t--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090817025829.GH74242>