Linux – Cron jobs when system offline

cronlinux

Seems like such a simple question, but I can't find an answer to:

Cron is scheduled to run daily, say at midnight. If my system is offline during that period of time and I turn it on the next day, cron won't run my jobs on boot. Is there any way to change this behaviour, say by making all backlogged jobs run at once on boot?

Best Answer

Not with vixiecron, not exactly.

You probably want anacron, which was specifically created to cover the "offline" gap in cron. Anacron is designed to work with cron, but you could use a complete cron replacement instead. FCron is one which will take system down time in to account.

Related Topic