Andrei-Florian Staicu wrote:
>As vrea sa rulez SARG-ul dupa fiecare logrotate pentru Squid.
>
>Am gasit in /etc/logrotate.d/squid urmatoarele:
>
>/var/log/squid/access.log {
> weekly
> rotate 5
> copytruncate
> compress
> notifempty
> missingok
>}
>
>Daca inserez un "sarg" inainte de compress imi face treaba asta?
>
>
>
>
postrotate
/usr/sbin/squid -k rotate
endscript
cam asha cred ca se poate face... shi iese de genu ...
/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
}
---
Detalii despre listele noastre de mail: http://www.lug.ro/