Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HP-UX Daylight Savings Time patch and cron

Status
Not open for further replies.

greglocke

Technical User
Dec 12, 2006
7
US
I installed the DST patch to reflect the new DST/PST times on my three HP systems. The time is correct on the systems. However, times captured in the /var/adm/cron/log are one hour behind.

Cron is either starting one hour off or recording it that way.

Any help? How do I fix?
 
Perhaps shut cron down and restart to allow it to update it's configuration.

I want to be good, is that not enough?
 
If you do a man localtime, you'll see that the localtime() C library call (very, very common in C apps) looks at the "TZ" environment variable to get its timezone info. It would seem that any program that calls localtime() and isn't restarted might have this issue...?

Anyway, I noticed the same thing and went into each system and did a /sbin/rc2.d/S#cron stop and S#cron start.

I then tested by running an "echo tst" > /tmp/tst.log and it ran.....

I was wondering if the DST fix required a re-boot. I don't remember as I did it on HP-UX 11.00, 11.11 and 11.23... Not to mention all the Solaris and AIX servers....

AIX was the only one that did not have a problem with the time change.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top