[squid-users] logrotate squid files

From: Riccardo Castellani <r.castellani_at_usl6.toscana.it>
Date: Tue, 4 May 2010 08:29:07 +0200

I need to rotate these log files for Squid:

store.log
access.log
cache.log
rewrite.log (jesred log)
redirect.log (jesred log)

What's the suitable command (to insert among postrotate and endscript) for
telling both to Squid and to Jesred to write again in .log files ?

1) test ! -e /var/run/squid.pid || /usr/sbin/squid -k rotate

2) /bin/kill -HUP `cat /var/run/squid.pid 2> /dev/null` 2> /dev/null || true

3) invoke-rc.d squid reload > /dev/null

I used 2) command where I send 'hang up' signal to Squid.

I want to be sure "all 5 log file" can rotate !

What do you think about 1) 2) 3) commands ? What's the better ?
Received on Tue May 04 2010 - 06:29:04 MDT

This archive was generated by hypermail 2.2.0 : Mon May 10 2010 - 12:00:04 MDT