Changement du logrotate, passage de 120 à 210
# du -sh /var/log/apache2/
105M /var/log/apache2/
# df -h
Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur
udev 21G 0 21G 0% /dev
tmpfs 4,1G 588K 4,1G 1% /run
/dev/sdb1 58G 16G 40G 28% /
tmpfs 21G 1,2M 21G 1% /dev/shm
tmpfs 5,0M 0 5,0M 0% /run/lock
/dev/sda 59G 29G 27G 52% /mnt/www
tmpfs 4,1G 0 4,1G 0% /run/user/1000
Mon fichier :
/var/log/apache2/*.log {
daily
missingok
rotate 210
compress
delaycompress
notifempty
create 640 root adm
sharedscripts
prerotate
if [ -d /etc/logrotate.d/httpd-prerotate ]; then
run-parts /etc/logrotate.d/httpd-prerotate
fi
endscript
postrotate
if pgrep -f ^/usr/sbin/apache2 > /dev/null; then
invoke-rc.d apache2 reload 2>&1 | logger -t apache2.logrotate
fi
endscript
}