Logrotating single-issue files
Harry Putnam
reader at newsguy.com
Mon Nov 10 11:40:12 UTC 2003
Nicolas Mailhot <Nicolas.Mailhot at laPoste.net> writes:
> The problem is of course once the files have been rotated once nothing
> will recreate the original files so they'll be stuck in first rotation
> forever (of course one might tell logrotate to create empty new files
> after compression but that means filling the disk with empty files -
> plus gziped empty files are *not* zero-sized anymore).
Investigate the `create', `size' and compress specs in man logrotate.conf
Will something like this in /etc/lograte.conf work?
/home/reader/t/var/log/*.log {
create 0600 reader reader
size=1000k
rotate 10
compress
}
More information about the fedora-devel-list
mailing list