tozu
18.11.08, 13:50
hallo
ich rufe logrotate am ersten des monat mittels crontab auf - das funktioniert auch (laut log datei von cron)
mein problem ist, dass logrotate die files nicht rotiert - anbei meine logrotate config
# see "man logrotate" for details
# rotate log files weekly
monthly
# keep 4 weeks worth of backlogs
rotate 12
# 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
#empty log file is ok - no error message
missingok
#datumsstempel
dateext
#email send?
nomail
# no packages own wtmp, or btmp -- we'll rotate them here
/var/log/wtmp {
}
/var/log/btmp {
}
/var/log/auth.log {
}
/var/log/cron.log {
}
ich rufe logrotate am ersten des monat mittels crontab auf - das funktioniert auch (laut log datei von cron)
mein problem ist, dass logrotate die files nicht rotiert - anbei meine logrotate config
# see "man logrotate" for details
# rotate log files weekly
monthly
# keep 4 weeks worth of backlogs
rotate 12
# 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
#empty log file is ok - no error message
missingok
#datumsstempel
dateext
#email send?
nomail
# no packages own wtmp, or btmp -- we'll rotate them here
/var/log/wtmp {
}
/var/log/btmp {
}
/var/log/auth.log {
}
/var/log/cron.log {
}