Delayed cronjobs

Jerry McAllister jerrymc at msu.edu
Fri May 30 16:21:45 UTC 2008


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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"


More information about the freebsd-questions mailing list