PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : logrotate rotiert nicht



tozu
18.11.08, 14: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 {
}

BedriddenTech
18.11.08, 18:46
Erstens: Pack das nächste Mal Configs bitte in die CODE-Tags, da machts Lesen mehr Spaß. ;)

Zweitens: Du mußt auch angeben, welche Dateien nach welchen Kriterien rotiert werden sollen, z. B.


/var/log/vuurmuur/*.log {
size 100M
rotate 1
weekly
compress
delaycompress
missingok
postrotate
/bin/kill -HUP `pidof vuurmuur_log`
endscript
}

tozu
19.11.08, 12:21
hallo

ich dachte, wenn ich das ganze "global" festlege brauche ich das nicht ....