nach langer Zeit habe ich mich wieder mal hierher verirrt. Nachdem ich lange Zeit auf OpenSuse gesetzt habe, bin ich nun auch Debian 6 umgestiegen und dabei, einen neuen Server aufzusetzen. Dabei knabbere ich an einem kleinen Problem:
ist konfiguriert wie folgt:logrotate 3.7.8 - Copyright (C) 1995-2001 Red Hat, Inc.
Mit einem logrotate -d /etc/logrotate.conf bekomme ich auch ein:# 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
# use date as a suffix of the rotated file
dateext
# uncomment this if you want your log files compressed
#compress
# packages drop log rotation information into this directory
include /etc/logrotate.d
# comment these to switch compression to use gzip or another
# compression scheme
compresscmd /bin/bzip2
compressext .bz2
uncompresscmd /bin/bunzip2
# 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
und dennoch wird jedes weitere logfile was ich unter /etc/logrotate.d definiert habe wieder mit gz gepackt.compress_prog is now /bin/bzip2
compress_ext is now .bz2
uncompress_prog is now /bin/bunzip2
Ich dachte, die Definition in der logrotate.conf hätte globale Gültigkeit - so kenne ich das von OpenSuse. Aber offensichtlich muss ich das unter Debian in jedem conf File einzeln definieren wenn ich mit bzip2 packen möchte(?)