Christopher Kern wrote:
> Hope this helps...
> 
> 
> When investigating this myself, I found that I needed to set up a link
> to the service in /etc/init.d with this command as the root user:
> 
> "cd /etc/runlevels/default && ln -s /etc/init.d/ntp-client ." (no
> quotes, of course)
> 
> This works fine at boot, as the service start is indicated in the boot
> display, and the time is indeed set to the correct time once executed
> at boot time. I also found that one can alter the timeout for this
> service by changing the NTPCLIENT_TIMEOUT variable in
> /etc/conf.d/ntp-client file so that it is whatever you'd like it to
> be. The default setting was 30 seconds, but I thought a shorter time
> would have been better, especially at boot time.
> 
> Contents of /etc/conf.d/ntp-client:
> 
> # /etc/conf.d/ntp-client
> 

Look here..

> # Command to run to set the clock initially

ntp-client is meant to be a one time thing.

> # Most people should just leave this line alone ...
> # however, if you know what you're doing, and you
> # want to use ntpd to set the clock, change this to 'ntpd'
> NTPCLIENT_CMD="ntpdate"

        Ntpdate was a simple utility meant to be run as a cron job, but now is
mostly depreciated in favor of using ntpd/openntpd.  The full daemons
are not the resource hogs they used to be, and are much better at
handling clock skew. They keep track of the skew, so they only do a
correction as often as needed. Using a daemon also helps keep the other
ntp servers from getting pounded at certain points of the day by people
who use cron jobs, which strains their resouces and makes it harder for
you to get accurate info.

        You're a little better than most since you are doing daily syncs and
not hourly or 4x a day, but do you have any idea how many people set up
syncs at midnight?

        Use a daemon, it'll do a better job keeping your system in sync and be
much nicer on all the ntp servers you're syncing against.

OpenNTPD guide
http://gentoo-wiki.com/HOWTO_NTP_Using_OpenNTPD

NTPD guide
http://gentoo-wiki.com/NTP

PaulNM
-- 
gentoo-user@gentoo.org mailing list

Reply via email to