LOGROTATE v3.7.4-7 (redhat, srpms) ignoring 'size' spec ... help?
OpenMacNews
openmacnews at gmail.com
Mon Oct 16 17:52:35 UTC 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
hi,
i've built and installed LOGROTATE v3.7.4-7 from src tarball, extracted
via rpm2cpio from:
http://download.fedora.redhat.com/pub/fedora/linux/core/development/source/SRPMS/logrotate-3.7.4-7.src.rpm
my lograte.conf includes:
====================================
compresscmd /usr/bin/gzip
uncompresscmd /usr/bin/gunzip
/var/log/test.log {
size 3M
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? or, is this, perhaps, a bug?
thanks,
richard
- --
/"\
\ / ASCII Ribbon Campaign
X against HTML email, vCards
/ \ & micro$oft attachments
[GPG] OpenMacNews at gmail dot com
fingerprint: 50C9 1C46 2F8F DE42 2EDB D460 95F7 DDBD 3671 08C6
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iEYEARECAAYFAkUzxuYACgkQlffdvTZxCMZYJgCeIb6ca8hI7idBvKu9bjzGxH2Y
xN8An1ZuLXPFQ8cQPB2FIVoXLr/pOAuf
=XQfD
-----END PGP SIGNATURE-----
More information about the redhat-list
mailing list