From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.6) Gecko/20011120
Description of problem:
when having both "daily" and "size=XXX" only the last entry is used.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. edit a logrotate conf file
2. add both "daily" (or weekly, etc) and 'size=XXX'
Actual Results: only the last entry is used
only the size option is used
only the daily option is used
Expected Results: the logs should be rotated if either condition is met
/var/log/access_log /www/logs/agent_log /www/logs/error_log
/bin/kill -USR1 `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true
this should rotate the web logs if the logs get too big (accesslog) OR
daily (errorlog) ( if logrotate is run hourly)
it would also be nice if size could handle 'G' in addition to 'k' and 'M'
it would also be nice if some of the options could be passed via the
/usr/sbin/logrotate "size=1G" /etc/logrotate.d/apache
it would also be nice if the extensions could be in UNIX epoch format
so you would get:
another useful option would be
so you would get
the last two combined would be very useful where logs are archived and
collected on a central server
but whis IS NICE is the whole program. It does work well and reliably.
See bug #52525 for a response to the rotation criteria issue.
I've added a 'G' specifier for size into CVS (will be 3.6.2).
For the rest of the suggestions, about all I can promise is to accept a patch :)