[squid-users] logrotate squid files

From: Riccardo Castellani <ric.castellani_at_alice.it>
Date: Sun, 9 May 2010 21:32:03 +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 Sun May 09 2010 - 19:32:45 MDT

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