Portál AbcLinuxu, 13. května 2025 23:07
Special considerations exist when the clock is changed by less than 3 hours, for example at the beginning and end of daylight savings time. If the time has moved forwards, those jobs which would have run in the time that was skipped will be run soon after the change. Conversely, if the time has moved backwards by less than 3 hours, those jobs that fall into the repeated time will not be re-run.
Only jobs that run at a particular time (not specified as @hourly, nor with '*' in the hour or minute specifier) are affected. Jobs which are specified with wildcards are run based on the new time immediately.
Clock changes of more than 3 hours are considered to be corrections to the clock, and the new time is used immediately.
verze z debianu, ale asi plati obecne
Neplatí. Naopak, takové chování je spíš netypické.
Podle mých zkušeností na SuSE 10.2 ne. Když jsem pod VMware nouzově použil
*/15 * * * * /usr/sbin/netdate tcp unicorn
zcela běžně jsem měl v logu od cronu dva zápisy o spuštění, které měly stejný čas, což by se podle výše uvedené citace stát nemělo.
Daylight Saving Time and other time changesLocal time changes of less than three hours, such as those caused by the start or end of Daylight Saving Time, are handled specially. This only applies to jobs that run at a specific time and jobs that are run with a granularity greater than one hour. Jobs that run more frequently are scheduled normally.
If time has moved forward, those jobs that would have run in the interval that has been skipped will be run immediately. Conversely, if time has moved backward, care is taken to avoid running jobs twice. Time changes of more than 3 hours are considered to be corrections to the clock or timezone, and the new time is used immediately.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.