Why does cron.hourly not care about the existence of anacron?
Posted
by
Oliver Salzburg
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Oliver Salzburg
Published on 2012-06-11T16:41:19Z
Indexed on
2012/06/11
16:48 UTC
Read the original article
Hit count: 248
cron
This question came up over in Root Access.
Why does the default /etc/crontab
not check for existence (and executable flag) of /usr/sbin/anacron
for the hourly entry?
My /etc/crontab
:
# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
What makes hourly different from the others?
© Ask Ubuntu or respective owner