<div dir="auto">So what your saying is change the<div dir="auto">-k reconfigure to</div><div dir="auto">-k rotate</div><div dir="auto"><br></div><div dir="auto">Even tho I've configured squid from source</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 18 Jun 2022, 00:17 Amos Jeffries, <<a href="mailto:squid3@treenet.co.nz">squid3@treenet.co.nz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 18/06/22 07:06, robert k Wild wrote:<br>
> i understand it now<br>
> <br>
<br>
Er, no.<br>
<br>
> cat /etc/logrotate.d/squid<br>
> /usr/local/squid/var/logs/*.log {<br>
...<br>
> postrotate<br>
> /usr/local/squid/sbin/squid -k reconfigure<br>
> endscript<br>
> }<br>
> <br>
> needed the sharedscripts to run the postrotate just once for all logs<br>
> <br>
> didnt need the squid -k rotate as already handled by logrotate<br>
> <br>
<br>
The "-k rotate" tells Squid to open and start writing to the new log <br>
files created by logrotate tool.<br>
<br>
That "-k reconfigure" you have chosen is a far more complicated and slow <br>
operation. It is not guaranteed to change the files Squid is writing to.<br>
<br>
<br>
PS. you also need to configure "logfile_rotate 0" for self-built Squid <br>
to prevent it doing any log file renumbering when logrotated is used.<br>
<br>
Amos<br>
_______________________________________________<br>
squid-users mailing list<br>
<a href="mailto:squid-users@lists.squid-cache.org" target="_blank" rel="noreferrer">squid-users@lists.squid-cache.org</a><br>
<a href="http://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer noreferrer" target="_blank">http://lists.squid-cache.org/listinfo/squid-users</a><br>
</blockquote></div>