Op vrijdag 18 januari 2013 18:47:31 schreef Stroller:
> 
> On 18 January 2013, at 18:08, Grant Edwards wrote:
> 
> > On 2013-01-17, Neil Bothwick <n...@digimed.co.uk> wrote:
> >> On Thu, 17 Jan 2013 22:47:17 +0000 (UTC), Grant Edwards wrote:
> >> 
> >>> By default, ntpd doesn't seem to want to do
> >>> a step correction to fix large clock errors on startup (there's
> >>> probably an option for that).
> >> 
> >> That's for ntp-client to do.
> > 
> > In additon to being a server, ntpd _is_ an ntp client.
> > 
> > Are you talking about running ntpclient
> > (http://doolittle.icarus.com/ntpclient) instead of ntpd?
> 
> I'm pretty sure he's talking about making larger corrections to fix larger 
> clock errors on startup.
> 
> I believe I have both ntpd and ntp-client in the default runlevel on at least 
> one system, although I won't swear to it.
> 
> Stroller.
> 
> 

I think you can either run ntp-client to set the time at startup, or ntpd -q. 
Both are run through ntp-client, but you can set it so that it uses ntpd to set 
the time. This is done by modifying /etc/conf.d/ntp-client. Mine looks like 
this, so you can see I'm actually using ntpd -q as ntp-client:

# /etc/conf.d/ntp-client

# Command to run to set the clock initially
# 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="ntpd"

# Options to pass to the above command
# This default setting should work fine but you should
# change the default 'pool.ntp.org' to something closer
# to your machine.  See http://www.pool.ntp.org/ or
# try running `netselect -s 3 pool.ntp.org`.
#NTPCLIENT_OPTS="-s -b -u \
#       0.gentoo.pool.ntp.org 1.gentoo.pool.ntp.org \
#       2.gentoo.pool.ntp.org 3.gentoo.pool.ntp.org"
NTPCLIENT_OPTS="-q"

Paul


Reply via email to