[Comm] logrotate для squid
Мерзляков Евгений Ан
Мерзляков Евгений Ан
Пт Ноя 18 23:13:24 MSK 2005
у меня так:
/etc/logrotate.d/squid
ротатится каждое воскресенье и по access.log sarg отчеты делает
/var/log/squid/access.log {
weekly
rotate 5
copytruncate
compress
notifempty
missingok
# Generate reports
prerotate
/usr/bin/sarg
endscript
}
/var/log/squid/cache.log {
weekly
rotate 5
copytruncate
compress
notifempty
missingok
}
/var/log/squid/store.log {
weekly
rotate 5
copytruncate
compress
notifempty
missingok
# This script asks squid to rotate its logs on its own.
# Restarting squid is a long process and it is not worth
# doing it just to rotate logs
postrotate
/usr/sbin/squid -k rotate
endscript
}
Подробная информация о списке рассылки community