Date: Wed, 11 Jun 2014 11:31:02 +0200 From: Spil Oss <spil.oss@gmail.com> To: freebsd-stable@freebsd.org Subject: cron jobs running early in virtual machine Message-ID: <CAEJyAvNm17i%2Bwt8d6yvs9BcEdBZyyEbVuaBBjydE7WyuC0Q2uA@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAEJyAvNm17i%2Bwt8d6yvs9BcEdBZyyEbVuaBBjydE7WyuC0Q2uA>