Re: [squid-users] squid -k rotate does not work

From: Michael Alger <squid_at_mm.quex.org>
Date: Tue, 30 Sep 2008 17:11:42 +0800

On Tue, Sep 30, 2008 at 10:33:10AM +0330, Platoali wrote:
> I've a problem with squid log rotatation.
>
> here is the content of my /var/log/squid:
>
> # ls -l
> total 16940
> -rw-r----- 1 proxy proxy 661760 Sep 30 10:26 access.log
> -rw-r----- 1 proxy proxy 8104 Sep 30 10:26 cache.log
> -rw-r----- 1 proxy proxy 13429584 Sep 30 10:26 cache0
> -rw-r----- 1 proxy proxy 1468800 Sep 30 10:26 cache1
> -rw-r----- 1 proxy proxy 790704 Sep 30 10:22 cache2
> -rw-r----- 1 proxy proxy 246672 Sep 30 10:22 cache3
> -rw-r----- 1 proxy proxy 687345 Sep 30 10:26 store.log
>
> when I issue the command:
>
> #squid -k rotate
>
> The access.log and and cache.log didn't rotate.
>
> does any one have any clue?

Do you have logfile_rotate set in your squid.conf? If this is 0,
then squid won't actually rotate the logfile, but instead just close
and re-open it. This is the default on Debian (and maybe other
distros), as it uses logrotate to actually rotate the logs.
Received on Tue Sep 30 2008 - 09:11:54 MDT

This archive was generated by hypermail 2.2.0 : Tue Sep 30 2008 - 12:00:04 MDT