[CentOS] Tasks in /etc/cron.daily on CentOS 7?

Wed Mar 11 17:48:18 UTC 2015
Thomas Eriksson <thomas.eriksson at slac.stanford.edu>

On 03/11/2015 08:17 AM, Niki Kovacs wrote:
> Hi,
> 
> I just configured SquidAnalyzer, a nifty little network statistics tool
> that I'm using mainly in school networks to monitor network usage.
> 
> I want to run the '/usr/bin/squid-analyzer' script once a day. I took a
> peek in /etc/cron.daily, and the package already installed an
> /etc/cron.daily/0squidanalyzer script.
> 
> I wanted to know at what time CentOS ran the cron.daily scripts, so I
> typed crontab -l, but there was only "no cronjobs defined for root".
> 
> Here's how things look on a public Slackware64 14.0 server I administrate:
> 
> # crontab -l
> ...
> # Run hourly cron jobs at 47 minutes after the hour:
> 47 * * * * /usr/bin/run-parts /etc/cron.hourly 1> /dev/null
> #
> # Run daily cron jobs at 4:40 every day:
> 40 4 * * * /usr/bin/run-parts /etc/cron.daily 1> /dev/null
> #
> # Run weekly cron jobs at 4:30 on the first day of the week:
> 30 4 * * 0 /usr/bin/run-parts /etc/cron.weekly 1> /dev/null
> #
> # Run monthly cron jobs at 4:20 on the first day of the month:
> 20 4 1 * * /usr/bin/run-parts /etc/cron.monthly 1> /dev/null
> 
> How is this handled on CentOS 7?
> 
> Cheers,
> 
> Niki

In CentOS 5 this is configured in /etc/crontab

>From CentOS 6 onward, cron.hourly comes out of /etc/cron.d/0hourly
and the rest are configured in /etc/anacrontab

-Thomas