logrotate - create-Anweisung wird ignoriert?
Hallo zusammen,
ich kämpfe mit logrotate, da ich möchte, dass das mail.log nach dem
Rotieren Schreibrechte für die Gruppe mail hat, damit fetchmail da rein
loggen kann, den ich in diese Gruppe getan habe.
Dazu habe ich:
root@linux:/etc/logrotate.d# cat fetchmail
/var/log/mail.log {
daily
missingok
rotate 14
compress
notifempty
copytruncate
create 660 root mail
}root@linux:/etc/logrotate.d#
angelegt, die create-Anweisung scheint aber nicht zu klappen:
root@linux:/etc# la /var/log/mail.log
-rw-r----- 1 root adm 342818 2005-08-31 22:47 /var/log/mail.log
root@linux:/etc#
Ich vermute es liegt an der logrotate.conf, da die Dateien unter
logrotate.d/ nur Logs aus Paketen sind, und keine Systemlogs wie syslog
oder die mail.* - die werden wohl wo anders behandelt, nur wo und wie?
Hier ist die logrotate.conf, vielleicht weiß ja jemand Rat?
root@linux:/etc# cat logrotate.conf
# 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 0664 root utmp
rotate 1
}
# system-specific logs may be configured here
root@linux:/etc#
Viele Grüße
André
Reply to: