Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 05 Nov 2011 22:33:19 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Robert Simmons <rsimmons0@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: ntpdate on boot problem
Message-ID:  <4EB5B9AF.9080101@infracaninophile.co.uk>
In-Reply-To: <CA%2BQLa9BV3DCfW4GMJEN4q1nLSJ92yRUCk_VsK-=hWWNy1d6Qng@mail.gmail.com>
References:  <CA%2BQLa9BOozP544LB7MwzjvXqHPLxgfU0w_nr%2BWv9bQtexFMjbw@mail.gmail.com> <20111105220349.GA49530@freebsd.org> <CA%2BQLa9BV3DCfW4GMJEN4q1nLSJ92yRUCk_VsK-=hWWNy1d6Qng@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigC806F3AD6B68AF95C326742F
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 05/11/2011 22:19, Robert Simmons wrote:
> On Sat, Nov 5, 2011 at 6:03 PM, Alexander Best <arundel@freebsd.org> wr=
ote:
>> same here. simply add something like the following to your crontab:
>>
>> 0       10      *       *       */2     /etc/rc.d/ntpdate onestart
>=20
> 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).

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:

ntpd_enable=3D"YES"
ntpd_sync_on_start=3D"YES"

	Cheers,

	Matthew

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


--------------enigC806F3AD6B68AF95C326742F
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk61ubgACgkQ8Mjk52CukIxUyACfbGohVOKY8DSiP51gxjNtACiG
1nAAn2++QfE6UdqL6Pl+zRejyfOfQoLw
=lkxb
-----END PGP SIGNATURE-----

--------------enigC806F3AD6B68AF95C326742F--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4EB5B9AF.9080101>