Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] ntp-client starting before net.eth0
Date: Sat, 10 Sep 2005 10:37:45
Message-Id: 20050910113257.26700194@hactar.digimed.co.uk
In Reply to: Re: [gentoo-user] ntp-client starting before net.eth0 by Dave Nebinger
1 On Fri, 09 Sep 2005 18:13:47 -0400, Dave Nebinger wrote:
2
3 > I'm willing to gues that in the OP's case the ifplugd is not setting
4 > the "provide net" flag correctly and/or it is setting the flag before a
5 > cable is actually connected. In any case it's probably down & dirty
6 > with the gentoo networking scripts to figure out how to get the timing
7 > to work right...
8
9 Nor should it add provide net, because ifplugd running doesn't mean the
10 network is up. My solution would be to remove any network dependent
11 services from any runlevel that uses ifplugd, and start/stop them from the
12 postup/predown functions in /etc/conf.d/net instead.
13
14 If you wanted to get clever, you could create a new runlevel, say
15 network, then add "rc network" to postup() and "rc default" to predown()
16 instead of handling each service separately.
17
18
19 --
20 Neil Bothwick
21
22 Quark! Quark! Beware the quantum duck!