Re: Updating and displaying CMOS clock

看板FB_questions作者時間11年前 (2014/07/07 05:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/28 (看更多)
Hi Victor, On 06/07/14 08:32 AM, Victor Sudakov wrote: > Colleagues, > > What's the command to update the CMOS clock to the time of the kernel > clock? > > ntpd does a good job of keeping the accurate time in the kernel clock, > but from my experience, this time is not propagated to the CMOS clock > which lives its own life. As a result, there is a large time skew > everytime the box is rebooted, which prevents from Kerberos login > until the kernel clock is synchronized. > > In other words, what's the FreeBSD equivalent of the Linux > "hwclock --systohc" command? > > And no, contrary to popular belief, the correction of the CMOS clock > does not happen automatically in FreeBSD even if ntpd is running. > > If there is a way to display the time of the CMOS (RTC) clock, I > would be interested to know too. > > TIA. > To get around this I've started using ntpdate on boot. You can put the following in your /etc/rc.conf: --- ntpdate_enable="YES" ntpdate_flags="<time server here>" --- _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
文章代碼(AID): #1JkS1I30 (FB_questions)
討論串 (同標題文章)
文章代碼(AID): #1JkS1I30 (FB_questions)