Gentoo Archives: gentoo-user

From: PaulNM <gentoo@×××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] NTP: ntp-client doesn't start
Date: Tue, 07 Nov 2006 14:58:26
Message-Id: 45509DD7.7050404@paulscrap.com
In Reply to: [gentoo-user] NTP: ntp-client doesn't start by Christopher Kern
1 Christopher Kern wrote:
2 > Hope this helps...
3 >
4 >
5 > When investigating this myself, I found that I needed to set up a link
6 > to the service in /etc/init.d with this command as the root user:
7 >
8 > "cd /etc/runlevels/default && ln -s /etc/init.d/ntp-client ." (no
9 > quotes, of course)
10 >
11 > This works fine at boot, as the service start is indicated in the boot
12 > display, and the time is indeed set to the correct time once executed
13 > at boot time. I also found that one can alter the timeout for this
14 > service by changing the NTPCLIENT_TIMEOUT variable in
15 > /etc/conf.d/ntp-client file so that it is whatever you'd like it to
16 > be. The default setting was 30 seconds, but I thought a shorter time
17 > would have been better, especially at boot time.
18 >
19 > Contents of /etc/conf.d/ntp-client:
20 >
21 > # /etc/conf.d/ntp-client
22 >
23
24 Look here..
25
26 > # Command to run to set the clock initially
27
28 ntp-client is meant to be a one time thing.
29
30 > # Most people should just leave this line alone ...
31 > # however, if you know what you're doing, and you
32 > # want to use ntpd to set the clock, change this to 'ntpd'
33 > NTPCLIENT_CMD="ntpdate"
34
35 Ntpdate was a simple utility meant to be run as a cron job, but now is
36 mostly depreciated in favor of using ntpd/openntpd. The full daemons
37 are not the resource hogs they used to be, and are much better at
38 handling clock skew. They keep track of the skew, so they only do a
39 correction as often as needed. Using a daemon also helps keep the other
40 ntp servers from getting pounded at certain points of the day by people
41 who use cron jobs, which strains their resouces and makes it harder for
42 you to get accurate info.
43
44 You're a little better than most since you are doing daily syncs and
45 not hourly or 4x a day, but do you have any idea how many people set up
46 syncs at midnight?
47
48 Use a daemon, it'll do a better job keeping your system in sync and be
49 much nicer on all the ntp servers you're syncing against.
50
51 OpenNTPD guide
52 http://gentoo-wiki.com/HOWTO_NTP_Using_OpenNTPD
53
54 NTPD guide
55 http://gentoo-wiki.com/NTP
56
57 PaulNM
58 --
59 gentoo-user@g.o mailing list