From owner-freebsd-questions Tue Aug 20 7:20:39 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BA3B337B400 for ; Tue, 20 Aug 2002 07:20:35 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id C704943E42 for ; Tue, 20 Aug 2002 07:20:34 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk ([IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.5/8.12.5) with ESMTP id g7KEKXQI016747; Tue, 20 Aug 2002 15:20:33 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.5/8.12.5/Submit) id g7KEKSvP016746; Tue, 20 Aug 2002 15:20:28 +0100 (BST) Date: Tue, 20 Aug 2002 15:20:28 +0100 From: Matthew Seaman To: Jimmy Lantz Cc: freebsd-questions@FreeBSD.ORG Subject: Re: fBSD 4.6 - Turn back time? I'm on a timemachine! Message-ID: <20020820142028.GB16482@happy-idiot-talk.infracaninophi> References: <5.1.0.14.0.20020820155724.00bbd110@mail.lusidor.nu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5.1.0.14.0.20020820155724.00bbd110@mail.lusidor.nu> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Aug 20, 2002 at 04:06:13PM +0200, Jimmy Lantz wrote: > Hi, > I have a problem with my FreeBSD box, > It's present time is way in the future, how can I force this to be current > time, I've tried adding this to rc.conf , and yes I've set the time zone. > > ntpdate_enable="YES" > ntpdate_program="ntpdate" > ntpdate_flags="-bs ntp1.sp.se ntp2.sp.se" NTP, at least in it's guise as ntpd, will just give up if the system clock is a long way off. Not sure about ntpdate... > But still: > > foobar# time > 0.374u 0.112s 2:30:50.00 0.0% 362+988k 2+0io 5pf+0w The 'time' command has nothing to do with the time-of-day: it shows you how much time a process took to run. > foobar# date > Ons 20 Aug 2003 23:32:48 CEST Just use the 'date' command to get the clock in the right ballpark --- within a minute or so should be fine, and then try ntpdate again: date 200208201514 ntpdate -bs ntp1.sp.se ntp2.sp.se Look at using ntpd to keep the clock accurate automatically while the system is running --- it's a lot more effective than running ntpdate every so often, although running ntpdate once immediately on boot up and then starting ntpd usually gives the best results. Cheers, Matthew. -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Tel: +44 1628 476614 Marlow Fax: +44 0870 0522645 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message