[CentOS] Time Change: Centos-immune?

Stephen Harris lists at spuddy.org
Wed Mar 7 18:07:11 UTC 2007


On Wed, Mar 07, 2007 at 09:59:02AM -0800, Florin Andrei wrote:
> Karl R. Balsmeier wrote:
> >
> >Any action required?
> 
> Perhaps a naive question, but anyway:
> 
> Let's assume I'm running CentOS4 or RHEL4 and I updated it to 
> tzdata-2007c. Before that, it was using an old tzdata package that did 
> not have the US DST '07 patches.
> 
> Do I have to restart any service? ntpd?

Yes.

Any process started before you update /etc/localtime (and ensure that
got updated correctly; it may not have been) may need to be restarted
if it uses zoneinfo information.  Two obvious ones are syslog and cron.
The safest solution is to reboot.


One way to check that localtime is correct (using /bin/sh or similar)

  . /etc/sysconfig/clock
  cmp /usr/share/zoneinfo/$ZONE /etc/localtime

If it reports differences the
  cp /usr/share/zoneinfo/$ZONE /etc/localtime

and then reboot.

See also http://kbase.redhat.com/faq/FAQ_79_9950.shtm

  Once updated, a restart of all the applications relying on /etc/localtime
  is required. The easiest solution would be to reboot the machine in
  order to ensure that all the applications are properly updated.


-- 

rgds
Stephen



More information about the CentOS mailing list