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 1HEw7V-0005EI-P9 for garchives@archives.gentoo.org; Wed, 07 Feb 2007 23:22:34 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l17NKR7M019105; Wed, 7 Feb 2007 23:20:27 GMT Received: from mail.netspace.net.au (mail-out4.netspace.net.au [203.10.110.77]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l17NCsUQ009294 for ; Wed, 7 Feb 2007 23:12:55 GMT Received: from [172.16.0.52] (ppp246-231.static.internode.on.net [203.122.246.231]) by mail.netspace.net.au (Postfix) with ESMTP id 6986137589D for ; Thu, 8 Feb 2007 10:12:54 +1100 (EST) Subject: Re: [gentoo-user] Network start delay? From: Iain Buchanan To: gentoo-user@lists.gentoo.org In-Reply-To: <200702071037.24409.prlewis@letterboxes.org> References: <200702071037.24409.prlewis@letterboxes.org> Content-Type: text/plain Date: Thu, 08 Feb 2007 08:42:49 +0930 Message-Id: <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 X-Mailer: Evolution 2.8.2.1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 0d3c1b68-4112-427a-9ffc-e1a5fbd4b87f X-Archives-Hash: 041062aedd7653c263131ce61d56a473 On Wed, 2007-02-07 at 10:37 +0000, Peter Lewis wrote: > Hi all, > > I have a quick question about my init scripts. > > 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... HTH, -- Iain Buchanan When you're in command, command. -- Admiral Nimitz -- gentoo-user@gentoo.org mailing list