Manfred Werner
05.02.07, 13:17
Hallo Forum,
Wer kann mir mal helfen,
ich möchte, dass über logrotate das logfile /var/log/mail
einmal in der Woche geleert wird. Die logrotate.conf wurde bei der Installation eingerichtet und sieht so aus.
# 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
# uncomment these to switch compression to bzip2
compresscmd /usr/bin/bzip2
uncompresscmd /usr/bin/bunzip2
# former versions had to have the compresscommand set accordingly
#compressext .bz2
# RPM packages drop log rotation information into this directory
include /etc/logrotate.d
# no packages own wtmp -- we'll rotate them here
#/var/log/wtmp {
# monthly
# create 0664 root utmp
# rotate 1
#}
# system-specific logs may be also be configured here.
Da ich mit der Man-Page nicht so recht klar komme, poste ich mal.;)
Wer kann mir sagen wie der Eintrag für das maillog aussehen müsste
Manfred
Wer kann mir mal helfen,
ich möchte, dass über logrotate das logfile /var/log/mail
einmal in der Woche geleert wird. Die logrotate.conf wurde bei der Installation eingerichtet und sieht so aus.
# 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
# uncomment these to switch compression to bzip2
compresscmd /usr/bin/bzip2
uncompresscmd /usr/bin/bunzip2
# former versions had to have the compresscommand set accordingly
#compressext .bz2
# RPM packages drop log rotation information into this directory
include /etc/logrotate.d
# no packages own wtmp -- we'll rotate them here
#/var/log/wtmp {
# monthly
# create 0664 root utmp
# rotate 1
#}
# system-specific logs may be also be configured here.
Da ich mit der Man-Page nicht so recht klar komme, poste ich mal.;)
Wer kann mir sagen wie der Eintrag für das maillog aussehen müsste
Manfred