cron jobs running early in virtual machine
Spil Oss
spil.oss at gmail.com
Wed Jun 11 09:31:03 UTC 2014
Hi,
I have a FreeBSD 10 running in VMWare ESXi 5.5. ntp is properly
configured and the time on the server is fine.
What I've found is that cron jobs start early. I call newsyslog -v in
jails from the system crontab
in /etc/crontab
0 0 * * * root jx all newsyslog -v
jx is a simple wrapper to call that program in a named jail or 'all'
jails from jls
results in
Date: Tue, 10 Jun 2014 23:59:08 +0200
Subject: Cron <root at gw> jx all newsyslog -v
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>
Jail: build
Processing /etc/newsyslog.conf
/var/log/daily.log <7>: --> will trim at Wed Jun 11 00:00:00 2014
So this will never cycle daily.log
What can cause cron to start all jobs early? I tested this with a
simple `date' in cron as well and that's early too
Kind regards,
Spil
More information about the freebsd-stable
mailing list