From owner-freebsd-hackers Tue Dec 23 23:29:07 1997 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.7/8.8.7) id XAA18030 for hackers-outgoing; Tue, 23 Dec 1997 23:29:07 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from dog.farm.org (gw-hssi-2.farm.org [209.66.103.33]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id XAA18026 for ; Tue, 23 Dec 1997 23:29:01 -0800 (PST) (envelope-from dog.farm.org!dk) Received: (from dk@localhost) by dog.farm.org (8.7.5/dk#3) id XAA07267; Tue, 23 Dec 1997 23:26:16 -0800 (PST) Date: Tue, 23 Dec 1997 23:26:16 -0800 (PST) From: Dmitry Kohmanyuk Message-Id: <199712240726.XAA07267@dog.farm.org> To: imp@village.org (Warner Losh) Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: procedure to adjust clock drift? Newsgroups: cs-monolit.gated.lists.freebsd.hackers Organization: FARM Computing Association Reply-To: dk+@ua.net X-Newsreader: TIN [version 1.2 PL2] Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk In article <199712232054.NAA24318@harmony.village.org> you wrote: > In message <199712231738.JAA01502@rah.star-gate.com> Amancio Hasty writes: > : Does anyone have a procedure to adjust the clock drift in a PC? > ntp? > It is already in the tree as xntpd and friends... of course; the problem with PCs is that they, unlike, say, sparcs, can gain few seconds in a day... I usually put this into /etc/daily.local (this is for old rc style, adjust to taste): # /etc/daily.local # If there is a global system configuration file, suck it in. if [ -f /etc/sysconfig ]; then . /etc/sysconfig fi if [ "X${ntpdate}" != X"NO" ]; then echo 'Running ntpdate:'; ntpdate ${ntpdate} #>/dev/null 2>&1 fi maybe this is a good idea for standard /etc/daily ?? Setting date by ntpdate only on boot looks like useless idea to me - freebsd boxes have trend to stay up for months... ;-)