Date: Fri, 9 Mar 2007 18:07:29 +0100 (CET) From: Oliver Fromme <olli@lurza.secnetix.de> To: freebsd-hackers@FreeBSD.ORG, killing@multiplay.co.uk, dougb@FreeBSD.ORG, des@des.no, mwm@mired.org Subject: Re: NFS based /usr prevents normal startup due to slow net init Message-ID: <200703091707.l29H7Tfj046217@lurza.secnetix.de> In-Reply-To: <00f801c76247$55fbe4c0$b3db87d4@multiplay.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
Steven Hartland wrote: > Oliver Fromme wrote: > > For FreeBSD, I think a workable solution would be to > > write a new RC script (e.g. /etc/rc.d/port_up) that > > polls the configured interfaces and waits until they > > are up. It should have a configurable timeout so it > > won't hang forever. Then add it to the REQUIRE line > > of the /etc/rc.d/mountcritremote script. > > Although that sounds like a possible solution I wouldnt > be suprised if there are other services which REQUIRE > "NETWORKING" and make assumptions about the network > state which are currently invalid. Possibly. > Given this perhaps NETWORKING is where this fix should > really be implemented? I thought about that, too. However, there are people who don't need the network to be up right at boot time. For example my notebook and my workstation at home. For those it would be annoying to have a 15 seconds delay during boot for no good reason. Therefore I would suggest to implement such a polling in a separate RC script and add it as a requirement only to thos scripts which absolutely need to have a working net- work for successful start-up. mountcritremote is certainly the most prominent example, as this thread shows. Another solution for that particular problem would be to add a feature to mount_nfs(8) to wait for a certain time and try again if a hostname lookup fails and the "bg" flag was specified for a mount. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "C++ is over-complicated nonsense. And Bjorn Shoestrap's book a danger to public health. I tried reading it once, I was in recovery for months." -- Cliff Sarginson
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200703091707.l29H7Tfj046217>