ntpdate on boot problem

Matthew Seaman m.seaman at infracaninophile.co.uk
Sat Nov 5 22:33:33 UTC 2011

On 05/11/2011 22:19, Robert Simmons wrote:
> On Sat, Nov 5, 2011 at 6:03 PM, Alexander Best <arundel at freebsd.org> wrote:
>> same here. simply add something like the following to your crontab:
>> 0       10      *       *       */2     /etc/rc.d/ntpdate onestart
> I have something similar in my crontab which is not exactly what I
> need.  I want to make sure that the clock is set at every boot because
> I'm using this as a kerberos server.  If the clock is not set properly
> at boot, kerberos will not work properly until the nightly cron jobs
> are run and the clock is set then.  I need everything working at boot.
>  I can't have a window of problems between boot and midnight or
> whenever cron runs ntpdate.

crontabs have this handy '@reboot' syntax...  It's all explained in

However, you would be well advised to run ntpd(8) rather than bodging
the clock with ntpdate at intervals.  ntpdate is deprecated by the ntp
project, given that ntpd now has the capability to synch the clock the
first time after restart no matter what the offset.  Just add these
rc.conf settings:




Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
JID: matthew at infracaninophile.co.uk               Kent, CT11 9PW

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 267 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20111105/4ae5c2d1/signature.pgp

More information about the freebsd-questions mailing list