Re: [squid-users] squid -k rotate does nothing

From: Amos Jeffries <squid3@dont-contact.us>
Date: Mon, 10 Sep 2007 12:18:49 +1200 (NZST)

> On tis, 2007-09-04 at 08:30 -0700, Wet Mogwai wrote:
>> My squid machine stopped rotating logs recently. The last time rotate
>> worked
>> was the day before I copied the access.log to my laptop for the first
>> time.
>> The only changes made to the configuration that day were the good.hosts
>> ,
>> bad.hosts, good.ip, and bad.ip files. After making the new files for the
>> ACLs, I ran squid -k reload.
>
> Check that the pid file exists, and have the right pid number in it...
>
> Also check cache.log for any errors..
> Regards
> Henrik
>

I've been having some trouble myself with the rotation recently.
FYI, I tracked it down to the logrotate.d script for squid. It was running:

  test ! -e /var/log/squid.pid || squid3 -k rotate

when squid builds the pid at /var/logs/squid.pid.

That stopped squid from actually doing the rotate unless it was run
manually as root.

Amos
Received on Sun Sep 09 2007 - 18:18:57 MDT

This archive was generated by hypermail pre-2.1.9 : Mon Oct 01 2007 - 12:00:02 MDT