Search squid archive

Re: Log rotate

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07.12.20 12:52, sampei02@xxxxxxxxxx wrote:
I manually installed Squid package 4.8-1 by yum utility while logrotate 3.8.6-19 was already installed.

you are running squid -k rotate in postrotate too, so what is your question?

When I installed Squid package, It’s has been created automatically /etc/logrotate.d/squid as I showed in previous mails and where there is written 'squid -k rotate’.
My question is: if I use logrotate process why in /etc/logrotate.d/squid is recalled ''squid -k rotate’ ?
I thought 'squid -k rotate’ started another file rotation in addition to logrotate.

in such case I answered in my former mail:

On 7 Dec 2020, at 12:07, Matus UHLAR - fantomas <uhlar@xxxxxxxxxxx> wrote:
according to squid docs, squid only reopens log files in "rotate" request,
so logrotate takes care about renaming and compressing files, while squid
only has to reopen them.

if squid would not reopen log files, it would continue writing to old log
files, no matter if they were renamed, removed, compressed (due to how unix
systems handle files).

reopening log files makes squid to start writing to new files, so the old
logs aren't touched.

--
Matus UHLAR - fantomas, uhlar@xxxxxxxxxxx ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
It's now safe to throw off your computer.
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux