Re: anacron with cron or alternate to cron
On 2008-07-08 19:15 +0200, Brian McKee wrote:
> I'm confused about running anacron and cron at the same time. I was
> under the impression that it was either/or, but I see on a server
> running here that it has both cron and anacron.
Just look at anacron's dependencies, it recommends cron.
> IIUC, anacron keeps
> track of jobs it runs, and marks down the completion time so it knows
> when it needs to be run the next time. How does anacron know that
> cron already ran that job and it doesn't need to?
See /etc/crontab and /etc/anacrontab. Anacron runs the scripts in
/etc/cron.{daily,weekly,monthly}, cron the ones in /etc/cron.{hourly,d}.
Sven
Reply to: