Gentoo Archives: gentoo-user

From: John Jolet <john@×××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] ntp-client starting before net.eth0
Date: Fri, 09 Sep 2005 22:33:51
Message-Id: 222391F9-A2A8-4C4A-B8A0-C75842FE4648@jolet.net
In Reply to: Re: [gentoo-user] ntp-client starting before net.eth0 by Dave Nebinger
1 On Sep 9, 2005, at 5:13 PM, Dave Nebinger wrote:
2
3 >>> So shouldn't it wait till the network has started and I have an
4 >>> IP address
5 >>> from ifplugd?
6 >>>
7 >>
8 >> Well, isn't the problem here that the network isn't being
9 >> requested to
10 >> start (until ntp tries to make a connection, which of course
11 >> attempts to
12 >> start it, but then it's too late)?
13 >>
14 >
15 > [snip]
16 >
17 >
18 >> So I would suggest
19 >>
20 >> rc-update add net.eth0 default
21 >>
22 >
23 > Slightly off...
24 >
25 > ifplugd is used to bring a network connection up/down when the
26 > network device is plugged in or unplugged. So the OP doesn't want
27 > net.eth0 starting at boot automatically because the cable might not
28 > be plugged in at the time.
29 >
30 > Unfortunately that's as much as I know about ifplugd. I do know
31 > that the gentoo network scripts will ensure that the "provide net"
32 > flag is defined that ntp-client relies upon to do it's thing.
33 >
34 > What I don't know is how integrated ifplugd is with the gentoo
35 > network scripts, if it too ensures the "provide net" flag is
36 > specified. Nor do I know if, upon cable switching from eth0 to
37 > eth1 for example, the network services that were previously tied to
38 > eth0 would be restarted to now use eth1...
39 >
40 > I'm willing to gues that in the OP's case the ifplugd is not
41 > setting the "provide net" flag correctly and/or it is setting the
42 > flag before a cable is actually connected. In any case it's
43 > probably down & dirty with the gentoo networking scripts to figure
44 > out how to get the timing to work right...
45
46 ifplugd seems to have the ability to do whatever you want when the
47 interface gets link and loses it, couldn't you just add the ntp-
48 client call in the actions script (as specified in the /etc/conf.d/
49 ifplugd file?). I just installed ifplugd today, so am by no means an
50 expert...
51 --
52 gentoo-user@g.o mailing list