[squid-users] Logrotate question
robert k Wild
robertkwild at gmail.com
Fri Jun 17 23:25:06 UTC 2022
So what your saying is change the
-k reconfigure to
-k rotate
Even tho I've configured squid from source
On Sat, 18 Jun 2022, 00:17 Amos Jeffries, <squid3 at treenet.co.nz> wrote:
> On 18/06/22 07:06, robert k Wild wrote:
> > i understand it now
> >
>
> Er, no.
>
> > cat /etc/logrotate.d/squid
> > /usr/local/squid/var/logs/*.log {
> ...
> > postrotate
> > /usr/local/squid/sbin/squid -k reconfigure
> > endscript
> > }
> >
> > needed the sharedscripts to run the postrotate just once for all logs
> >
> > didnt need the squid -k rotate as already handled by logrotate
> >
>
> The "-k rotate" tells Squid to open and start writing to the new log
> files created by logrotate tool.
>
> That "-k reconfigure" you have chosen is a far more complicated and slow
> operation. It is not guaranteed to change the files Squid is writing to.
>
>
> PS. you also need to configure "logfile_rotate 0" for self-built Squid
> to prevent it doing any log file renumbering when logrotated is used.
>
> Amos
> _______________________________________________
> squid-users mailing list
> squid-users at lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20220618/b6b4775a/attachment.htm>
More information about the squid-users
mailing list