From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1HF9QD-0004mC-Hk for garchives@archives.gentoo.org; Thu, 08 Feb 2007 13:34:46 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l18DXGgY025890; Thu, 8 Feb 2007 13:33:16 GMT Received: from out5.smtp.messagingengine.com (out5.smtp.messagingengine.com [66.111.4.29]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l18DQKCw014357 for ; Thu, 8 Feb 2007 13:26:21 GMT Received: from out1.internal (unknown [10.202.2.149]) by out1.messagingengine.com (Postfix) with ESMTP id AC38A1A94EF for ; Thu, 8 Feb 2007 08:26:18 -0500 (EST) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by out1.internal (MEProxy); Thu, 08 Feb 2007 08:26:18 -0500 X-Sasl-enc: PON9zomSPdLlHc0Zu7GvpIxyts4jVeimGDM/urUyqM5s 1170941178 Received: from [10.0.0.105] (80-195-196-69.cable.ubr01.harb.blueyonder.co.uk [80.195.196.69]) by mail.messagingengine.com (Postfix) with ESMTP id 6C2CD1C0F1 for ; Thu, 8 Feb 2007 08:26:18 -0500 (EST) From: Peter Lewis To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Network start delay? Date: Thu, 8 Feb 2007 13:23:51 +0000 User-Agent: KMail/1.9.5 References: <200702071037.24409.prlewis@letterboxes.org> <1170889969.14243.39.camel@orpheus> In-Reply-To: <1170889969.14243.39.camel@orpheus> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200702081323.51989.prlewis@letterboxes.org> X-Archives-Salt: f1c0f1a7-c2f9-4992-a1fb-df687e45f266 X-Archives-Hash: af55ffe26424b54841fc47b4d1902918 On Wednesday 07 February 2007 23:12, Iain Buchanan wrote: > On Wed, 2007-02-07 at 10:37 +0000, Peter Lewis wrote: > > I start my wireless network with the script > > > > /etc/init.d/net.eth2 > > > > which is started by init in the "default" runlevel. > > > > I also have > > > > /etc/init.d/netmount > > > > to mount some samba shares, and which is also started my init in the > > "default" runlevel, but depends on "net" from the line: > > > > local myneed="net" > > > > So, as I understand it, this makes sure that init starts net.eth* before > > starting netmount. That's good. However, eth2 is on a DHCP-enabled > > connection and takes a few seconds to come up after starting the script. > > By the time netmount is started, net.eth2 has not finished coming up, so > > netmount fails and the samba shares are never mounted automatically. > > > > Is there a way to make the netmount script wait for a route to exist > > before attempting to connect? > > net.eth2 "shouldn't" return (by default) until it has a dhcp address, > which means all other scripts starting after it will wait until you have > an address. > > Things you might have done to change the default behaviour include > RC_PARALLEL_STARTUP, and RC_NET_STRICT_CHECKING in /etc/conf.d/rc. > > You can set them to "no", and "yes" respectively and see if the > following scripts wait... Thanks for this. I just checked and I have those variables set up correctly. Yes, upon closer inspection, the problem is slightly weirder. I'm using an Intel ipw3945 wireless device, which requires a daemon to run to "regulate it" or something. So, I also have /etc/init.d/ipw3945d start at boot. This must start before I can access eth2. However, I've actually just noticed that I don't explicitly start net.eth2 in any runlevel. It seems that this is kicked into action by ipw3945d somewhere (though I can't see where). The /etc/init.d/net.eth2 process just seems to fork off to the background, meaning that init carries on booting, and hence fails on netmount. Anyone any experience with this? Cheers, Pete. -- gentoo-user@gentoo.org mailing list