[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cron.daily logrotate beating up my server



2014-02-25 13:53 GMT+01:00 Tazman Deville <tazmandevil@gmx.com>:

My /etc/crontab is as follows:

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user  command
17 *    * * *   root    cd / && run-parts --report /etc/cron.hourly
15 4    * * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts
--report /etc/cron.daily )
07 3    * * 7   root    test -x /usr/sbin/anacron || ( cd / && run-parts
--report /etc/cron.weekly )
52 1    1 * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts
--report /etc/cron.monthly )


I DO have anacron installed.
I do not know what is relevant from syslog.
I find no mention of cron, crontab, or logrotate in /var/log/syslog
at all.

That's quite weird, indeed you should have something like that
/USR/SBIN/CRON[32528]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
/USR/SBIN/CRON[32528]: (root) CMD (   cd / && run-parts --report /etc/cron.daily)
etc etc...

BTW Your crontab is correct

run
# run-parts --report /etc/cron.daily

then
# grep -i cron /var/log/syslog


/r

Reply to: