From owner-freebsd-questions@FreeBSD.ORG Sat Sep 4 06:36:57 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6F77D10656DD for ; Sat, 4 Sep 2010 06:36:57 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (agora.rdrop.com [IPv6:2607:f678:1010::34]) by mx1.freebsd.org (Postfix) with ESMTP id 4B0C48FC16 for ; Sat, 4 Sep 2010 06:36:57 +0000 (UTC) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id o846auhM032572 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 3 Sep 2010 23:36:57 -0700 (PDT) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.12.9/Submit) with UUCP id o846auGP032571; Fri, 3 Sep 2010 23:36:56 -0700 (PDT) Received: from fbsd61 by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA19555; Fri, 3 Sep 10 23:34:38 PDT Date: Fri, 03 Sep 2010 23:34:33 -0700 From: perryh@pluto.rain.com To: freebsd@qeng-ho.org Message-Id: <4c81e879.vT3c8HBQCXR5AwE5%perryh@pluto.rain.com> References: <4c80af91.0XK7R1NzplpVQC/a%perryh@pluto.rain.com> <4C80C1D6.2050104@qeng-ho.org> In-Reply-To: <4C80C1D6.2050104@qeng-ho.org> User-Agent: nail 11.25 7/29/05 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: gibblertron@gmail.com, freebsd-questions@freebsd.org Subject: Re: 8.1: Cron ignoring crontab updates X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Sep 2010 06:36:57 -0000 Arthur Chance wrote: > On 09/03/10 09:19, perryh@pluto.rain.com wrote: > > Chris Rees wrote: > >> You have to SIGHUP cron, not restart it. > >> # killall -HUP cron > > > > Isn't crontab(1) supposed to do that, without separate > > intervention? > > From man cron > > > Additionally, cron checks each minute to see if its spool > > directory's modification time (or the modification time on > > /etc/crontab) has changed, and if it has, cron will then > > examine the modification time on all crontabs and reload > > those which have changed. Thus cron need not be restarted > > whenever a crontab file is modified. Note that the > > crontab(1) command updates the modification time of the > > spool directory whenever it changes a crontab. OK, I had the mechanism wrong. The main point is, it should not require manual intervention by an administrator to get cron(8) to notice when crontab(1) has revised a crontab. The one thing I can think of, short of a bug, is that a change made less than 1 minute before the newly-added or -removed event might not be noticed in time.