Updating hardware clock from cron

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Is there a package to do this?

Normally the hardware clock is set during shutdown if one is running ntpd. 
But if a long-running server shuts down unexpectedly, this isn't done, and 
the hardware clock might be off by a lot when it comes back up. So setting 
it periodically from a cron job could be useful.

What do others do? Adding a one liner to /etc/cron.daily that invokes 
/etc/rc.d/init.d/ntpd would do it but it seems heavyweight to restart ntpd. 
Alas, the script doesn't export just the sync_hwclock function.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux