[squid-users] File rotation problem

Amos Jeffries squid3 at treenet.co.nz
Fri Nov 13 00:53:47 UTC 2015


On 13/11/2015 12:30 a.m., VerĂ³nica Ovando wrote:
> Thanks for your answer, Amos.
> 
> Yes, squid 3.5 is running over Debian8.
> 
> What do you refer with "All the squid3 things you are checking may not
> actually exists anymore"?

If you are running the official Debian 3.5 package, it went through a
transition to rename the binaries and all path directories and files
from their custom "squid3" names to the more normal "squid" name.


> Is it about the postrotate? What do you
> suggest me for keeping my logs not growing in that way:
> - use logrotate and put it in a cron daily.
> - use logfile_rotate, set it to five and cron squid3 -k rotate daily?

Whatever you have in the logrotate.d config script needs to match the
binary names and path directory names that actually exist on your machine.

If you copy-n-paste the postrotate script line into the terminal command
line, does it work?


The other thing is what Matus mentioned. logrotate.d was configured to
only run daily. If the log fills to more than 50MB in less than a day,
what do you think happens?

Amos



More information about the squid-users mailing list