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.
> -- Jos
> freebsd-questions at freebsd.org mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
More information about the freebsd-questions