Logrotate doesn't run hourly in Ubuntu 13.04

Asked by Kasper Grubbe

I am currently experiencing some issues with logrotate, and running them hourly. After some investigation I found the following:

/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 )

ls /etc/cron.daily/
logrotate

ls /etc/cron.hourly/
# empty

I think that means the following logrotate will not work:

ls /etc/logrotate.d/nginx
/var/log/nginx/*.log {
  hourly
  # (...)
}

Is there a reason why logrotate is not set to run hourly in Ubuntu?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu logrotate Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#1

I suggest you report a bug

Revision history for this message
Kasper Grubbe (kawsper) said :
#2

Thanks actionparsnip, that solved my question.