Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jun 2014 14:03:31 +0100
From:      <cdr.nil@gmail.com>
To:        <freebsd-stable@freebsd.org>
Subject:   RE: Hourly cron jobs running to early
Message-ID:  <000f01cf9463$b1e0b300$15a21900$@gmail.com>
In-Reply-To: <CAEJyAvNteTZA5xiUzwNr=W241LZzWMB%2BQppZa829eDDSsCT2ng@mail.gmail.com>
References:  <CAEJyAvNteTZA5xiUzwNr=W241LZzWMB%2BQppZa829eDDSsCT2ng@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Folks,

I, too, am seeing a problem of cron running jobs a few seconds too early.
This is on a Thinkpad T42 running:

FreeBSD cobalt 10.0-RELEASE-p6 FreeBSD 10.0-RELEASE-p6 #3 r267829M: Wed Jun
25 07:41:33 BST 2014     root@cobalt:/usr/obj/usr/src/sys/GENERIC  i386

BIOS clock is running UTC and is under ntpd control.

I noticed this on a logging cron job that is supposed to run on the hour.
These are the last few timings:

03:59:47
04:59:12
05:59:47
06:59:47
07:59:47
08:59:47
09:59:47
10:59:47
11:59:47
12:59:47

Best Regards,
Mark Willson

-----Original Message-----
From: owner-freebsd-stable@freebsd.org
[mailto:owner-freebsd-stable@freebsd.org] On Behalf Of Spil Oss
Sent: 30 June 2014 10:05
To: freebsd-stable@freebsd.org
Subject: Hourly cron jobs running to early

Hi,

A system I manage that was recently upgraded from 9 to 10.0 and to a
later version of VMWare vSphere (5.5U1) is no longer running hourly
jobs at the top of the hour but just before. This is especially
annoying for newsyslog that doesn't then cycle logfiles that are set
to daily rotation.

grep -E " (00|23):" /var/log/cron.log
Jun 25 23:59:34 gw /usr/sbin/cron[94620]: (root) CMD (newsyslog)
Jun 26 00:59:51 gw /usr/sbin/cron[95380]: (root) CMD (newsyslog)
Jun 26 23:59:12 gw /usr/sbin/cron[21259]: (root) CMD (newsyslog)
Jun 27 00:59:34 gw /usr/sbin/cron[22036]: (root) CMD (newsyslog)
Jun 27 23:59:25 gw /usr/sbin/cron[49211]: (root) CMD (newsyslog)
Jun 28 00:59:34 gw /usr/sbin/cron[49968]: (root) CMD (newsyslog)
Jun 28 23:58:55 gw /usr/sbin/cron[83459]: (root) CMD (newsyslog)
Jun 29 00:59:51 gw /usr/sbin/cron[84221]: (root) CMD (newsyslog)
Jun 29 23:59:51 gw /usr/sbin/cron[6571]: (root) CMD (newsyslog)
Jun 30 00:59:51 gw /usr/sbin/cron[7327]: (root) CMD (newsyslog)

ntpd is configured on the server and working fine
# ntpdate -q ntp1.nl.uu.net
server 193.79.237.14, stratum 1, offset -0.000250, delay 0.02942
30 Jun 10:54:50 ntpdate[19771]: adjust time server 193.79.237.14
offset -0.000250 sec

Looking at all hourly newsyslog jobs for a day
14:59:51 15:59:47 16:58:42 17:59:51 18:59:55 19:59:55 20:59:51
21:59:12 22:59:34 23:59:51 23:59:51 23:59:51 00:59:51 01:58:42
02:59:29 03:59:47 04:59:51 05:59:47 06:59:38 07:59:51 08:59:42
09:58:42 10:58:42
I don't really see a pattern in this
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000f01cf9463$b1e0b300$15a21900$>