How does anacron determine daily, weekly and monthly job to run?
- Which time of the previous job will anacron use to decide whether to run the job again: start time or finish time of the previous job? Is it correct that anacron uses only the finish time and cron only concerns the start time?
Does daily mean exactly 24 hours, or just different calendar days will allow a daily job to run?
Does weekly mean exactly 7 days, or just different calendar weeks will allow a weekly job to run?
Does monthly mean exactly 30 days, or just different calendar months will allow a monthly job to run?
The timestamp files are only accurate up to day, so I guess the answer to the daily question is a different "calender" day not 24 hours?
$ sudo cat /var/spool/anacron/cron.daily 20181101 $ sudo cat /var/spool/anacron/cron.weekly 20181028 $ sudo cat /var/spool/anacron/cron.monthly 20181011
Some example. Suppose a daily job starts to run at 4am today, and anacron will run only once tomorrow at 6am.
If the job finishes running at 11am today, Which time will anacron use to decide whether to run the job: start time or finish time?
If the job finishes running at 5am today, will anacron decides to run it then?
If the job finishes running at 3am tommorrow, will anacron decides to run it then?
Thanks.