From owner-freebsd-questions@FreeBSD.ORG Fri May 30 16:21:45 2008 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 925AC1065670 for ; Fri, 30 May 2008 16:21:45 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id 744FF8FC17 for ; Fri, 30 May 2008 16:21:45 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id m4UGHgOC042692; Fri, 30 May 2008 12:17:42 -0400 (EDT) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id m4UGHgvO042691; Fri, 30 May 2008 12:17:42 -0400 (EDT) (envelope-from jerrymc) Date: Fri, 30 May 2008 12:17:42 -0400 From: Jerry McAllister To: Jos Chrispijn Message-ID: <20080530161742.GB42590@gizmo.acns.msu.edu> References: <483FC68E.2030603@webrz.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <483FC68E.2030603@webrz.net> User-Agent: Mutt/1.4.2.2i Cc: freebsd-questions@freebsd.org Subject: Re: Delayed cronjobs 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: Fri, 30 May 2008 16:21:45 -0000 On Fri, May 30, 2008 at 11:19:10AM +0200, Jos Chrispijn wrote: > Let's say my system has been down for one day. Is it possible to > automatically (re)start cronjobs on system startup that should have been > run the day before? You can write the sccript that your cronjob starts so that it keeps track of when it was last run and then either have cron run it often or add it to /usr/local/etc/rc.d to be run at startup. Then if the script was run sufficiently recently, just exit - maybe with an appropriate message/error code. ////jerry > > -- Jos > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"