1832973 Members
2676 Online
110048 Solutions
New Discussion

Re: summer time

 
Ivan_42
Advisor

summer time

Hi All,
this week end the time's going to switch off summer time modality.
What will it happen to cron daemon?
I was thinking scheduling a script at 2.59 which contain a "sleep 61" command and then a restart of cron daemon.
What do you think about this idea?
Is a workaround exist?
Thanks to All.
BR,
i.
2 REPLIES 2
Pete Randall
Outstanding Contributor

Re: summer time

Ivan,

Cron is designed to handle these transitions without problem. Take a look at the man page for cron, in particular the section "Spring and Autumn Time Transitions".


Pete



Pete
Graham Cameron_1
Honored Contributor

Re: summer time

No need to restart cron, or do anything.
Commands scheduled to run at "ambiguous time" (ie time that occurs again after the clocks go back) only get run once.

See the "Spring and Autumn Time Transitions" section within man cron.

See also man 4 tztab.

-- Graham
Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done.