[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: anacron with cron or alternate to cron



On Tue, Jul 8, 2008 at 1:15 PM, Brian McKee <brian.mckee@gmail.com> wrote:
>  How does anacron know that
> cron already ran that job and it doesn't need to?

Found my answer - there's a script called 0anacron in /etc/cron.daily
that runs 'anacron -u cron.daily' which updates anacron's time stamps
without actually running the scripts.

So, it's worth noting that if you want something in /etc/crontab to be
run by anacron if crontab fails, it needs to be in both places, and
the cron job has to update the anacron stamp....

Brian


Reply to: