From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 26 00:54:13 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 78E271065672 for ; Sat, 26 Nov 2011 00:54:13 +0000 (UTC) (envelope-from tim@kientzle.com) Received: from monday.kientzle.com (99-115-135-74.uvs.sntcca.sbcglobal.net [99.115.135.74]) by mx1.freebsd.org (Postfix) with ESMTP id 28CA28FC14 for ; Sat, 26 Nov 2011 00:54:12 +0000 (UTC) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id pAQ0GdwP018231; Sat, 26 Nov 2011 00:16:39 GMT (envelope-from tim@kientzle.com) Received: from [192.168.2.119] (CiscoE3000 [192.168.1.65]) by kientzle.com with SMTP id ttzvuk32y8nb4euheugwnesd82; Sat, 26 Nov 2011 00:16:39 +0000 (UTC) (envelope-from tim@kientzle.com) Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=windows-1252 From: Tim Kientzle In-Reply-To: <4ED011C6.8060605@FreeBSD.org> Date: Fri, 25 Nov 2011 16:16:38 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: References: <201111251609.pAPG97dT008848@slippy.cwsent.com> <4ED011C6.8060605@FreeBSD.org> To: Doug Barton X-Mailer: Apple Mail (2.1251.1) Cc: Jason Hellenthal , hackers@freebsd.org Subject: Re: cron(8) mis-feature with @reboot long after system startup X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Nov 2011 00:54:13 -0000 On Nov 25, 2011, at 2:08 PM, Doug Barton wrote: > On 11/25/2011 08:09, Cy Schubert wrote: >> You're right. Sorry. It was late, after a long night of O/T. >=20 > Actually I was in the same boat, which is why my reply was even = grumpier > than usual, sorry. >=20 > Meanwhile I like your suggestion of having cron check that it's within > $time_period before running the @reboot jobs Hmmm=85 I thought rc.d distinguished between boot-time and non-boot-time starts already. It might be simpler and more accurate to add a crond command-line option (--run-reboot-scripts) and have the rc.d scripts only pass that in when crond is started at boot time. Tim