From owner-freebsd-questions Thu Apr 11 19:48: 7 2002 Delivered-To: freebsd-questions@freebsd.org Received: from hitchcock.woahnelly.net (p69-157.acedsl.com [66.114.69.157]) by hub.freebsd.org (Postfix) with ESMTP id BF28F37B400 for ; Thu, 11 Apr 2002 19:48:00 -0700 (PDT) Received: from localhost (wes@localhost) by hitchcock.woahnelly.net (8.11.6/8.11.6) with ESMTP id g3C2lvj03137; Thu, 11 Apr 2002 22:47:57 -0400 (EDT) (envelope-from wes@woahnelly.net) Date: Thu, 11 Apr 2002 22:47:57 -0400 (EDT) From: wes chow To: Peter Leftwich Cc: FreeBSD Questions Subject: Re: grr, stupid springforwardfallback (timed) In-Reply-To: <20020411195346.A76458-100000@earl-grey.cloud9.net> Message-ID: <20020411223520.L3095-100000@hitchcock.woahnelly.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 I'm still not sure exactly what you want here... My understanding is that you want some program that runs constantly in the background that will periodically sync you computer's clock up to an accurate time source. Is this correct? If so, that's ntpd (the link I gave below). To clarify: ntpdate sets the clock a single time (when the program is run). You can use this a boot time to set the clock once. ntpd is a daemon process that gradually adjusts the clock and looks for drift. It starts up at boot time, but runs constantly, thus adjusting the clock constantly. You need to set xntpd_enable="YES" to start that up a boot time. Alternatively, you can also do something like "ntpd -p /var/run/ntpd.pid" to start it manually. There are a bunch of configuration options you need to set for ntpd (for example, which time servers to sync to). That file is /etc/ntp.conf. Read the link I gave you earlier for information about that. Does that help? And about the GMT offset... I only have a vague understanding of this. I believe the time zone information is kept in the kernel and set at boot time by adjkerntz. You can change it by using tzsetup. The current timezone information is kept in /etc/localtime. Check the man pages for tzsetup and adjkerntz for more info. Wes On Thu, 11 Apr 2002, Peter Leftwich wrote: > On Wed, 10 Apr 2002, wes chow wrote: > > Is this what you mean? > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ntp.html > > Wes > > Sort of but really not really :( ... There is nothing in my /etc/rc.conf > nor in my /boot/loader.conf that clearly is *the* one time daemon to run, > that promises to keep accurate time from the Navy's heartbeat and maintain > GMT offset and daylight savings information: > > # grep ntpd /etc/rc.conf > ntpdate_enable="YES" # Run ntpdate to sync time on boot (or NO). > ntpdate_program="ntpdate" # path to ntpdate, if you want a different one. > ntpdate_flags="-v" # Flags to ntpdate (if enabled). > xntpd_enable="NO" # Run ntpd Network Time Protocol (or NO). > xntpd_program="ntpd" # path to ntpd, if you want a different one. > xntpd_flags="-p /var/run/ntpd.pid" # Flags to ntpd (if enabled). > > Should I change the line 'ntpdate_program="ntpdate"' to ="ntpd" instead? > > PS. Where *is* GMT offset information for the box stored anyway?? > > -- > Peter Leftwich > President & Founder > Video2Video Services > Box 13692, La Jolla, CA, 92039 USA > +1-413-403-9555 > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message