ntpdate on boot problem

Carl Johnson carlj at peak.org
Sun Nov 6 03:56:56 UTC 2011

Matthew Seaman <m.seaman at infracaninophile.co.uk> writes:

> 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
> crontab(5).

Just be aware that 'Run once, at startup', means when 'cron' starts, not
just when the system boots, unless they have changed it recently.

Carl Johnson		carlj at peak.org

More information about the freebsd-questions mailing list