Date: Thu, 17 Jul 2003 01:04:52 +0530 From: Shantanu Mahajan <freebsd@dhumketu.cjb.net> To: stan <stanb@panix.com> Cc: freebsd-questions@freebsd.org Subject: Re: Seting the hardware clock Message-ID: <20030716193452.GA697@dhumketu.homeunix.net> In-Reply-To: <20030714231604.GA27924@teddy.fas.com> References: <20030714231604.GA27924@teddy.fas.com>
next in thread | previous in thread | raw e-mail | index | archive | help
+-- stan [freebsd] [14-07-03 19:16 -0400]: | ;m struggling with getting the hardware clock (BIOS clock) equal to the | kernels time. | | On my Linux boxes a utility called hwclock is run on the way down to | synchronize the 2. | | The problem I'm running into is that if the time on the system gets to far | out of date for ntpd to bring it into synch, then I can update the kernels | clock with ntpdate. But when I reboot the old incorrect time comes back. From the manual page of ntpdate -b Force the time to be stepped using the settimeofday(2) system call, rather than slewed (default) using the adjtime(2) system call. This option should be used when called from a startup file at boot time. Hope this helps. Regards, Shantanu | | I ran into this during some software testing, that required setting the | clock pretty far off of real time, and it was a PIA to get the machine back | to the correct time. | | How _should_ this be handled? | | -- | "They that would give up essential liberty for temporary safety deserve | neither liberty nor safety." | -- Benjamin Franklin | | ------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030716193452.GA697>