4.14. Cron
O Red Hat Enterprise Linux 6 inclui o pacote o cronie como um substituto para o vixie-cron. A diferença principal entre este pacotes é de como as tarefas regulares (diárias, semanais, mensais) são feitas. O Cronie usa o arquivo /etc/anacrontab, que por padrão se parece com o seguinte:
# the maximal random delay added to the base delay of the jobs
RANDOM_DELAY=45
# the jobs will be started during the following hours only
START_HOURS_RANGE=3-22
# period in days delay in minutes job-identifier command
1 5 cron.daily nice run-parts /etc/cron.daily
7 25 cron.weekly nice run-parts /etc/cron.weekly
@monthly 45 cron.monthly nice run-parts /etc/cron.monthly
RANDOM_DELAY=0 # or don't use this option at all
START_HOURS_RANGE=4-5
# period in days delay in minutes job-identifier command
1 0 cron.daily nice run-parts /etc/cron.daily
7 0 cron.weekly nice run-parts /etc/cron.weekly
@monthly 0 cron.monthly nice run-parts /etc/cron.monthly
- Atrasos casuais para o início da tarefa em
/etc/anacrontab. - O intervalo de tempo de tarefas regulares podem ser definidas no
/etc/anacrontab. - Cada cron table pode ter sua própria zona de tempo definida com a varável CRON_TZ.
- Por padrão, o daemon do cron checa por mudanças nas tabelas com o inotify.