admin_grundlagen:logrotate
Dies ist eine alte Version des Dokuments!
Vorraussetzung: cron
/etc/logrotate.conf/etc/logrotate.d/*
Neue Logdatei zu logrotate hinzufügen
Debian 5.0
/etc/logrotate.d/ingo.log :
/var/log/ingo.log {
compress
size=+10
postrotate
/etc/init.d/rsyslog reload > /dev/null
endscript
}
SuSE
/etc/logrotate.d/ingo.log :
/var/log/ingo.log {
compress
size=+10
nodateext
postrotate
/etc/init.d/syslog restart > /dev/null
endscript
}
testen
echo 12345678901234567890 >> /var/log/ingo.log logrotate /etc/logrotate.conf ls /var/log/ingo.log*
admin_grundlagen/logrotate.1316686549.txt.gz · Zuletzt geändert: 2011/09/22 10:15 von ingo_wichmann
