1

logrotate daily directive ignored

view story
linux-howto

http://serverfault.com – For logrotate I have a cron task that runs hourly. In logrotate.conf there's the directive "daily". But the log files are rotated hourly, not daily. Why does it happen? What's this directive for? I thought that these time-related directives are for rotating more seldom than the tool executed. $ cat /opt/etc/logrotate.conf compress /opt/var/log/dir300.log { daily rotate 29 postrotate killall -HUP syslog-ng endscript } . $ grep logrotate /opt/etc/crontab 50 */1 * * * admin /opt/sbin/logrotate -f /opt/etc/logrotate.conf &>/dev/null $ ls (HowTos)