Search squid archive

logrotate squid files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 ?






[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux