Re: [squid-users] Problem restarting/stopping squid

From: Sergio Belkin <sebelk_at_gmail.com>
Date: Wed, 22 Sep 2010 12:06:58 -0300

2010/9/16 Amos Jeffries <squid3_at_treenet.co.nz>:
> On 17/09/10 01:46, Sergio Belkin wrote:
>>
>> 2010/9/16 Peter Albrecht<albrecht_at_opensourceservices.de>:
>>>
>>> Hi Sergio,
>>>
>>>> I use squid squid-2.6.STABLE21-3.el5 on CentOS 5.4. The problem is
>>>> that squid can't be restarted and "rotate" isnt working, I mean log
>>>> rotating is done but I have to start  the service by hand.
>>>>
>>>
>>>> /var/log/squid/store.log {
>
> Do you actually make use of store.log for anything?
> It's primarily a cache debugging log and most installs can configure it not
> to be created.
>
> Amos
> --

I think that I found the cause of problem. Since I was rotating on a
different times each log, only executed "squid -k rotate" when it
rotated the store.log, but it didn't when it made the access.log and
cache log. So I've append
postrotate
      /usr/sbin/squid -k rotate
    endscript

at the end of both access.log and cache.log sections.

Thanks

-- 
--
Sergio Belkin http://www.sergiobelkin.com
Watch More TV http://sebelk.blogspot.com
Sergio Belkin -
Received on Wed Sep 22 2010 - 15:07:05 MDT

This archive was generated by hypermail 2.2.0 : Wed Sep 22 2010 - 12:00:04 MDT