Results 1 to 1 of 1
Code:
hi,
i've built and installed LOGROTATE v3.7.4-7.
my lograte.conf includes:
====================================
compresscmd /usr/bin/gzip
uncompresscmd /usr/bin/gunzip
/var/log/test.log {
size 1M
daily
maxage 30
rotate 30
create 640 devuser devgrp
dateext
...
- 10-16-2006 #1Just Joined!
- Join Date
- Dec 2004
- Posts
- 1
logrotate ignoring 'size' spec ... why?
Code:hi, i've built and installed LOGROTATE v3.7.4-7. my lograte.conf includes: ==================================== compresscmd /usr/bin/gzip uncompresscmd /usr/bin/gunzip /var/log/test.log { size 1M daily maxage 30 rotate 30 create 640 devuser devgrp dateext missingok notifempty sharedscripts postrotate kill -HUP `cat /var/process/exim/exim.pid 2>/dev/null` 2> /dev/null || true endscript nomail nocompress } ==================================== currently, test.log is > 3M in size: % ls -al /var/log/test.log -rw-r----- 1 devuser devgrp 22782552 Oct 16 10:20 test.log my GOAL, with the above conf, is to exec logrotate hourly, via a cronjob and have it rotate test.log 'only' once daily, UNLESS the log files has exceeded 3M, then rotate immediately ... but, when i exec logrotate, i get: "empty log files are not rotated, only log files >= 3145728 bytes are rotated, old logs are removed. considering log /var/log/test.log. log does not need rotating" and, test.log is NOT rotated. what am i config'ing wrong here? thanks, richard


Reply With Quote
