I have a server that I want to be able to schedule jobs on, and I need to be able to specify when those jobs happen to the minute. There will be a lot of jobs. (Things like sending e-mail notifications to clients).
This sounds like the perfect job for cron, however, I need to be able to handle downtime. In the event of downtime, I can't wait till anacron runs at the end of the day to reconcile all the missed tasks.
If I have a bit of downtime, I need all the overdue tasks to be run at boot.
- Task is scheduled for 17:36
- Machine is shut down at 17:33
- Machine is booted at 17:40
- Task is now overdue, and should be run as soon as possible.
Is there a way to change anacron into something that runs at boot and runs all the overdue cron jobs?
Or, is there some other common solution to this problem?