Search squid archive

Re: Logrotate with postrotate script

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

 



On 16/09/2016 3:39 a.m., Roberto Carna wrote:
> Dear, I've installed Squid3 with log rotation by default.
> 
> I've analyzed the /etc/logrotate.d/squid3 file, and I can see this lines:
> 
> postrotate
>                 test ! -e /var/run/squid3.pid || /usr/sbin/squid3 -k rotate
> endscript
> 
> Why is the reason of the "test ! -e /var/run/squid3.pid ||
> /usr/sbin/squid3 -k rotate" command ??? Can yuo explain to me in
> detail please ??? Because I think if I delete this line, the logrotae
> config file is correct.
> 

It checks that Squid is running before sending it the signal to rotate logs.

Amos

_______________________________________________
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