logrotate ignoring 'size' spec ... why?
Code:
hi, |
Quote:
Look at the file size and time stamp on the output of your 'ls -al' command. |
hi bigrigdriver,
Quote:
Code:
argh! bits-n-bytes ... Quote:
cheers, richard |
From the logrotate man pages:
Quote:
In your case, obviously it isn't working. Try re-ordering the specs. Put size somewhere after daily, then try again. Or, remove the daily spec to see if it works with a size spec. |
hi again,
Quote:
Quote:
REMOING the "daily" spec, DOES get the "size" spec working as expected -- but of source, one loses the once-per-day capability. and, of course, 'daily' without 'size' works too. all that said, my workaround for the moment is TWO cron jobs, with two different .conf files. One, running once a day, with a "daily" spec, and one running, say, hourly, with a "size" spec. not optimal, and certainly NOT the wasy one would hope presume it works, but oh well. i've been looking around for better-behaved, well-supported rotate progs/scripts .. haven't found one (yet). thinking of simply (well, not exactly ...) writing my own. cheers, richard |
All times are GMT -5. The time now is 09:06 PM. |