Operating System - HP-UX
1834658 Members
2372 Online
110069 Solutions
New Discussion

Re: Problems with CRONTAB on Summer Time

 
Gustavo Souza Lima
Frequent Advisor

Problems with CRONTAB on Summer Time

Hi...I am live in Brazil and now We are on Summer Time and my crontab doesn't work well.
If I want to run a job at 05:00 AM I need to set my cron to run at 06:00 AM. Why this happen??? I typed a date command to see the time of the system and it was right.

Can someone help me please???
2 REPLIES 2
James R. Ferguson
Acclaimed Contributor

Re: Problems with CRONTAB on Summer Time

Hi:

The 'cron' damemon handles Daylight Saving time transitions without incident according to a predescribed set of rules described in the 'cron(1M)' manpages. See there.

If you recently updated your 'tztab' file (perhaps with a patch from the ITRC Patch databaase), but failed to stop and restart the 'cron' daemon, this may be the reason for your problems.

Regards!

...JRF...

Re: Problems with CRONTAB on Summer Time

Oi Gustavo,

First, check the /etc/default/tz file, it should contain the correct TIMEZONE for Brazil. Correct if necessary then try restarting the cron daemon :

#/sbin/init.d/cron stop

and

#/sbin/init.d/cron start


Boa sorte,
Nourreddine