Gentoo Archives: gentoo-user

From: Michael George <george@××××××××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Daylight time change and cron run twice
Date: Sun, 04 Nov 2012 14:00:53
Message-Id: 20121104135854.GA25553@brego.pewamo.office
1 Last night was our change from EDT to EST. So we went through the
2 1am-2am hour twice. My crontab has the following:
3
4 # for vixie cron
5 # $Header:
6 # /var/cvsroot/gentoo-x86/sys-process/vixie-cron/files/crontab-3.0.1-r4,v
7 # 1.3 2011/09/20 15:13:51 idl0r Exp $
8
9 # Global variables
10 SHELL=/bin/bash
11 PATH=/sbin:/bin:/usr/sbin:/usr/bin
12 MAILTO=root
13 HOME=/
14
15 # check scripts in cron.hourly, cron.daily, cron.weekly and cron.monthly
16 59 * * * * root rm -f /var/spool/cron/lastrun/cron.hourly
17 9 3 * * * root rm -f /var/spool/cron/lastrun/cron.daily
18 19 4 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly
19 29 5 1 * * root rm -f /var/spool/cron/lastrun/cron.monthly
20 */10 * * * * root test -x /usr/sbin/run-crons && /usr/sbin/run-crons
21
22 So the cron.daily file should be removed at 3:09am -- it should only run
23 once as the 2am-forward time only occurred once.
24
25 However, this morning I have two sets of email from my daily jobs
26 running. At this time:
27
28 Date: Sun, 4 Nov 2012 02:20:05 -0500 (EST)
29
30 and this time:
31
32 Date: Sun, 4 Nov 2012 03:10:04 -0500 (EST)
33
34 Why would it have run twice?
35
36 --
37 -M
38
39 Rident stolidi verba Latina.
40 -Ovid

Replies

Subject Author
Re: [gentoo-user] Daylight time change and cron run twice Alan McKinnon <alan.mckinnon@×××××.com>