Red Hat Enterprise Linux 6 incluye el paquete cronie como un remplazo para vixie-cron. La diferencia principal entre estos paquetes es cómo se realizan las tareas regulares (diarias, semanales, mensuales). Cronie utiliza el archivo /etc/anacrontab, el cual se ve por defecto así:
the maximal random delay added to the base delay of the jobs
the jobs will be started during the following hours only
period in days delay in minutes job-identifier command
# 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
Copy to ClipboardCopied!Toggle word wrapToggle overflow
Estas tareas regulares se ejecutarán una vez al día en el intervalo de tiempo 03:00-22:00, incluyendo un retraso aleatorio. Por ejemplo, cron.daily tendrá un retraso forzado de 5 minutos más un retraso aleatorio de 0-45 minutos. También podrá ejecutar tareas sin retrasos, entre 4 y 5:
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
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
Copy to ClipboardCopied!Toggle word wrapToggle overflow
Las funcionalidades de cronie incluyen:
Retraso aleatorio para iniciar la tarea en /etc/anacrontab.
El rango de tiempo de tareas regulares puede definirse en /etc/anacrontab.
Cada tabla cron puede tener su propia zona horaria definida con la variable CRON_TZ.
Por defecto, el daemon cron chequea con inotify si hay cambios en tablas.
Para obtener mayor información sobre cronie y cronie-anacron, por favor consulte la Guía de Implementación de Red Hat Enterprise Linux.
Ayudamos a los usuarios de Red Hat a innovar y alcanzar sus objetivos con nuestros productos y servicios con contenido en el que pueden confiar. Explore nuestras recientes actualizaciones.
Hacer que el código abierto sea más inclusivo
Red Hat se compromete a reemplazar el lenguaje problemático en nuestro código, documentación y propiedades web. Para más detalles, consulte el Blog de Red Hat.
Acerca de Red Hat
Ofrecemos soluciones reforzadas que facilitan a las empresas trabajar en plataformas y entornos, desde el centro de datos central hasta el perímetro de la red.