Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jun 2014 12:53:50 +0200
From:      "Ronald Klop" <ronald-lists@klop.ws>
To:        freebsd-stable@freebsd.org
Subject:   Re: cron jobs running early in virtual machine
Message-ID:  <op.xhadv0oakndu52@82-171-231-144.ip.telfort.nl>
In-Reply-To: <CAEJyAvNm17i%2Bwt8d6yvs9BcEdBZyyEbVuaBBjydE7WyuC0Q2uA@mail.gmail.com>
References:  <CAEJyAvNm17i%2Bwt8d6yvs9BcEdBZyyEbVuaBBjydE7WyuC0Q2uA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 11 Jun 2014 11:31:02 +0200, Spil Oss <spil.oss@gmail.com> wrote:

> 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

http://svnweb.freebsd.org/base?view=revision&revision=261231

This was committed to stable/10 after 10.0-RELEASE. Maybe it has something  
to do with it.

NB: I'm am not the author of the patch so I might be totally wrong.

Ronald.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.xhadv0oakndu52>