<div dir="ltr">Thanks, everyone for making it clear, I will investigate how to do it using logrotated.<div><br></div><div>Roee.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jan 12, 2021 at 3:26 AM Amos Jeffries <<a href="mailto:squid3@treenet.co.nz">squid3@treenet.co.nz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 11/01/21 8:53 am, Matus UHLAR - fantomas wrote:<br>
> On 10.01.21 17:24, roee klinger wrote:<br>
>> I just wanted to give an update in case anyone is interested, I was not<br>
>> able to find a solution,<br>
> <br>
> it was posted here:<br>
> <a href="http://lists.squid-cache.org/pipermail/squid-users/2020-December/023074.html" rel="noreferrer" target="_blank">http://lists.squid-cache.org/pipermail/squid-users/2020-December/023074.html</a> <br>
> <br>
> <br>
>>>     rotate=N        Specifies the number of log file rotations to<br>
>>>                 make when you run 'squid -k rotate'. [...]<br>
>>>                 Only supported by the stdio module<br>
>><br>
>> You are not using an "stdio" module. You are using a "daemon" module.<br>
> <br>
> simply said, it could not work in your case,<br>
>> Instead, I set "logfile_rotate 0" and wrote my own custom script to <br>
>> rotate<br>
>> the logs and I am running it as a cron, works just fine.<br>
> <br>
> isn't this the default in raspbian? Afaik it comes from debian, where this<br>
> is the default.<br>
> <br>
<br>
Exactly so. The Debian default is to offload log handling to logrotated. <br>
Nothing needs to be done by the admin in squid.conf. Raspbian uses the <br>
Debian package, rebuilt to run on the Pi hardware.<br>
<br>
Amos<br>
_______________________________________________<br>
squid-users mailing list<br>
<a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a><br>
<a href="http://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer" target="_blank">http://lists.squid-cache.org/listinfo/squid-users</a><br>
</blockquote></div>