Aug 18, 2011

When does `cron.daily` run?


When do entries in cron.daily (and .weekly and .hourly) run, and is it configurable?

I haven’t found a definitive answer to this, and am hoping there is one.

I’m running RHEL5 and CentOS 4, but for other distros/platforms would be great, too.


For the distributions you mention:

On CentOS 5.4 (Should be same for RHEL5)

grep run-parts /etc/crontab01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly

So cron.daily runs at 04:02am.

Same on CentOS 4.8

Related posts:

  1. What user do scripts in the cron folders run as? (i.e. cron.daily, cron.hourly, etc)
  2. Is it possible to configure cron (on linux) to read a user crontab from a file checked in to an application?
  3. knowning how much time is left before cron weekly runs?
  4. Cron: Can’t get my backup schedule to work with rsnapshot
  5. What’s the purpose of cron.daily folder in Ubuntu distro

Leave a comment