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)
So cron.daily runs at 04:02am. Same on CentOS 4.8 |
|||||||||||||
|
|
From the man page:
See also |
|||
|
|
|
CentOS6.x/RedHat6.x installs by default the package cronie-anacron. You have to:
Then you now have /etc/cron.d/dailyjobs to configure the best schedule time for your daily, weekly and monthly jobs. |
|||||
|
|
There is no such facility as far as Solaris is concerned. Just use regular crontab entries for daily tasks. |
|||
|
|
|
From
|
|||
|
|
|
For SuSE systems (specifically SLES 11.1 and openSuSE 10.3) the daily run time of the /etc/cron.daily scripts is controlled by the value of the DAILY_TIME variable set in the /etc/sysconfig/cron file. If the DAILY_TIME variable is not set, it defaults to: (time of last boot + 15 minutes). |
|||
|
|
|
On Ubuntu, you'll find a file /etc/crontab, from where this is configured. I guess it is something similar on RH and Centos. |
|||
|
|
For CentOS 6, you need to grep /etc/anacrontab and the answer varies if the server/laptop/dekstop/etc has been turned off or not.
So, between the hours of 3AM and 10PM** (after reboot and after the machine has been up for 5 minutes^^), run /etc/cron.daily. If there is no reboot, the job should run at 3:05AM++.
Reference: http://linux.die.net/man/5/anacrontab |
|||
|
|