Re: Frage zu logrotate - macht nicht was es soll?
On Sun, May 03, 2009 at 11:41:02AM +0200, Christian Knorr wrote:
> Kann mir jemand ein funktionierendes Logrotate posten welches auch wirklich
> komprimiert? Apropos: als was überhaupt? Ich vermute mal gzip.
/var/log/autoaus.log {
rotate 6
monthly
compress
missingok
notifempty
create 0640 root root
}
Das obige funktioniert bei mir einwandfrei, steht als Datei in
/etc/logrotate.d/
Vielleicht kommt es ja noch darauf an, was in /etc/logrotate.conf drin
steht:
# see "man logrotate" for details
# rotate log files weekly
weekly
# keep 4 weeks worth of backlogs
rotate 4
# create new (empty) log files after rotating old ones
create
# uncomment this if you want your log files compressed
#compress
# packages drop log rotation information into this directory
include /etc/logrotate.d
# no packages own wtmp, or btmp -- we'll rotate them here
/var/log/wtmp {
missingok
monthly
create 0664 root utmp
rotate 1
}
/var/log/btmp {
missingok
monthly
create 0660 root utmp
rotate 1
}
# system-specific logs may be configured here
ciao, Dirk
Reply to: