From owner-freebsd-stable@FreeBSD.ORG Wed Jun 11 10:54:01 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 350BAE4D for ; Wed, 11 Jun 2014 10:54:01 +0000 (UTC) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.81]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EA16D290B for ; Wed, 11 Jun 2014 10:54:00 +0000 (UTC) Received: from smtp.greenhost.nl ([213.108.104.138]) by smarthost1.greenhost.nl with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1WugAB-0004FS-Hd for freebsd-stable@freebsd.org; Wed, 11 Jun 2014 12:53:51 +0200 Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes To: freebsd-stable@freebsd.org Subject: Re: cron jobs running early in virtual machine References: Date: Wed, 11 Jun 2014 12:53:50 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Ronald Klop" Message-ID: In-Reply-To: User-Agent: Opera Mail/12.16 (FreeBSD) X-Authenticated-As-Hash: 398f5522cb258ce43cb679602f8cfe8b62a256d1 X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: - X-Spam-Score: -1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED, BAYES_40 autolearn=disabled version=3.3.1 X-Scan-Signature: 1fac81774939798d1cdb19633eb460de X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2014 10:54:01 -0000 On Wed, 11 Jun 2014 11:31:02 +0200, Spil Oss 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 jx all newsyslog -v > X-Cron-Env: > X-Cron-Env: > X-Cron-Env: > X-Cron-Env: > X-Cron-Env: > > 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.