From owner-freebsd-questions@FreeBSD.ORG Sat Nov 5 22:33:33 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1786F1065674 for ; Sat, 5 Nov 2011 22:33:33 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3fd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id 99EA88FC1A for ; Sat, 5 Nov 2011 22:33:32 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.187.76.163]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.5/8.14.5) with ESMTP id pA5MXSIJ012158 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sat, 5 Nov 2011 22:33:28 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: OpenDKIM Filter v2.4.1 smtp.infracaninophile.co.uk pA5MXSIJ012158 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1320532408; bh=KK7hhuxRookm1M5ArbbnXuooBpIFFgzMqMTZVP3/+6w=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type; b=pR1L0COn7UzzkpP8UOJJ2SU0F2LbaILc3sF2JJKA+C1jVA4X2Y+sOHk1iazzJ57ks dk4W8dE5LtN08plQVKXlclzcHLaiLDbEJoXcKWbKWY6F1DHsYaUXlMsmdol2iuKKQw YwOH+8IKyS0GkwFNKr7n60NfItu6wtwTP5bLp5Jg= Message-ID: <4EB5B9AF.9080101@infracaninophile.co.uk> Date: Sat, 05 Nov 2011 22:33:19 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: Robert Simmons References: <20111105220349.GA49530@freebsd.org> In-Reply-To: X-Enigmail-Version: 1.3.2 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigC806F3AD6B68AF95C326742F" X-Virus-Scanned: clamav-milter 0.97.3 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_FAIL autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: ntpdate on boot problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Nov 2011 22:33:33 -0000 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 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--