From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 25 22:05:30 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 88F52106564A for ; Fri, 25 Nov 2011 22:05:30 +0000 (UTC) (envelope-from debian@kvr.at) Received: from mail.kvr.at (83-65-151-179.work.xdsl-line.inode.at [83.65.151.179]) by mx1.freebsd.org (Postfix) with ESMTP id 07DED8FC0C for ; Fri, 25 Nov 2011 22:05:29 +0000 (UTC) Received: from chello062178002186.1.11.univie.teleweb.at ([62.178.2.186]:58049 helo=[10.7.77.7]) by mail.kvr.at with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1RU3Rm-0001DB-PM for freebsd-hackers@freebsd.org; Fri, 25 Nov 2011 22:36:38 +0100 Message-ID: <4ED00A68.4040606@kvr.at> Date: Fri, 25 Nov 2011 22:36:40 +0100 From: Christian Kastner User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111120 Icedove/3.1.16 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <20111125070241.GA7915@DataIX.net> In-Reply-To: <20111125070241.GA7915@DataIX.net> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Sat, 26 Nov 2011 00:40:11 +0000 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: Fri, 25 Nov 2011 22:05:30 -0000 Hi, On 2011-11-25 08:02, Jason Hellenthal wrote: > So with that said... is there a way we could actually make this run @reboot only ? Debian's cron[0] and Fedora's cronie[1] have solved this by touching a file on first startup and running @reboot only when this file does not yet exist. Note that while [0] may point to other patches that might be of interest to FreeBSD, they are still WIP (as evident from the linked patch) as we are still in the process of quiltifying our current code base. Regards, Christian [0] http://anonscm.debian.org/gitweb/?p=pkg-cron/pkg-cron.git;a=blob;f=debian/patches/features/run-on-reboot;h=94bab7dcbc4b34e4686385ca3ba3037453f1f4bb;hb=refs/heads/sf3 [1] http://git.fedorahosted.org/git/?p=cronie.git;a=commitdiff;h=2abb46f60f496e2725333a86ade0f3913981761d