[CentOS] Time Change: Centos-immune?

mcclnx mcc mcclnx at yahoo.com.tw
Wed Mar 7 18:12:48 UTC 2007


Use following command to check.  you can login as any
user.

/usr/sbin/zdump -v /etc/localtime | grep 2007



--- Stephen Harris <lists at spuddy.org> 說:

> 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
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
> 


___________________________________________________ 
 您的生活即時通 - 溝通、娛樂、生活、工作一次搞定! 
 http://messenger.yahoo.com.tw/



More information about the CentOS mailing list