From owner-freebsd-stable@FreeBSD.ORG Wed Jun 11 09:31:03 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8E643E7E for ; Wed, 11 Jun 2014 09:31:03 +0000 (UTC) Received: from mail-qa0-x229.google.com (mail-qa0-x229.google.com [IPv6:2607:f8b0:400d:c00::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 53D3C208D for ; Wed, 11 Jun 2014 09:31:03 +0000 (UTC) Received: by mail-qa0-f41.google.com with SMTP id cm18so3439010qab.0 for ; Wed, 11 Jun 2014 02:31:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:date:message-id:subject:from:to:content-type; bh=YP7eVJbwQYQ6TIcMqoBWlUIo425p+GmNgW2UXQ0Qiso=; b=sfGqTBCh/Us0TbNMcVEDiVfYf5G8MM3k78vGiaBp7lWWZ1WCzH5ug44PdhBDYNNA/R RxmxKNTXxSsSnWX45nx2ib3MIZKMc7lRSb/UUjcu8oR2SfgaG7HWKkK4IGTpa8ZP9LoT AwfvBPzf+JcZcAOs1XFq+wnWCFC2PPGnD17SW8LlNP9A/0I4VF/GNhXM6e8QdOTGp/5L JP1lmynMeVbHDQu1CgCTWzoMad16VOqdmczZS0mUCvczbq9PAj5X30GHo+vB685sjxYo OlgDASCLc/yNpZWoTgX31DFf4F1rx6vs4fOZ3/JWRqmuYLCgyWPYRNPdd/YWM/1gIDCn 1Svw== MIME-Version: 1.0 X-Received: by 10.224.72.13 with SMTP id k13mr24421936qaj.54.1402479062534; Wed, 11 Jun 2014 02:31:02 -0700 (PDT) Received: by 10.96.131.74 with HTTP; Wed, 11 Jun 2014 02:31:02 -0700 (PDT) Reply-To: spil.oss@gmail.com Date: Wed, 11 Jun 2014 11:31:02 +0200 Message-ID: Subject: cron jobs running early in virtual machine From: Spil Oss To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=UTF-8 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 09:31:03 -0000 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