Hello,
On 07/13/15 22:29, Stuart Henderson wrote:
On 2015-07-13, Indunil Jayasooriya <induni...@gmail.com> wrote:
I delted 30 from that line. Now it looks like this.
/var/squid/logs/access.log _squid:_squid 640 14 *
@T00 Z /var/squid/logs/squid.pid
Now it seems to work
But now it sends the default signal which is HUP. In Squid, this drains
existing connections and reloads the configuration, blocking new connections
while that occurs. You probably want USR1.
This is correct, Squid wants a SIGUSR1 as this triggers the
rotate ( like calling squid -k rotate).
You need to configure
logfile_rotate 0
in the squid.conf. This tells squid to rotate the files but keep itself.
Your newsyslog.conf file should look like this
/var/squid/logs/cache.log _squid:_squid 640 2 250 @T00 ZB
/var/run/squid.pid SIGUSR1
Compared to only using 'squid -k rotate' as Craig suggested, this will
also compress the rotated log files.
Cheerskim