Re: Frage zu logrotate - macht nicht was es soll?
Am Sonntag 03 Mai 2009 10:28:03 schrieb Christian Knorr:
> Am Samstag 02 Mai 2009 21:16:55 schrieb Jens Schüßler:
> > ,----
> >
> > | weekly
> > | Log files are rotated if the current weekday is less than the
> > | weekday of the last rotation or if more than a week has passed since
> > | the last rotation.
> >
> > `----
>
> Wo find’ ich diese Info?
man logrotate
> > Das'rotate 52' besagt auch nur das alte Logs 52 Wochen gespeichert
> > werden. Wenn du jetzt vorher rotieren willst musst du logrotate händisch
> > mit -f aufrufen,
>
> Das habe ich gemacht. Die Dateien werden umbenannt mit ".1" am Ende. Aber
> es steht doch "compress" im Auftrag!?
habe das in der manpage gefunden:
# sample logrotate configuration file
compress
/var/log/messages {
rotate 5
weekly
postrotate
/usr/bin/killall -HUP syslogd
endscript
}
Also habe ich "compress" nochmals außerhalb der Klammer geschrieben, am Anfang
der Datei - auch keine Auswirkung.
Kann mir jemand ein funktionierendes Logrotate posten welches auch wirklich
komprimiert? Apropos: als was überhaupt? Ich vermute mal gzip.
Chris....
Reply to: