Search squid archive

squid 2.6 log rotation question

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

 



Hi folks,

I have squid 2.6 version 17 installed. I'm trying to rotate the squid logs. According to the FAQ ( http://wiki.squid-cache.org/SquidFaq/SquidLogs ), I should be able to rotate logs like this:

sudo /usr/sbin/squid -k rotate

I'm running squid as the nobody user, but executing the rotate command as root.

When I use the above command, I don't get an error message, but I also don't get rotated log files.

My squid.conf has this entry for logfile_rotate:
logfile_rotate 10

I ran it in debug mode:
sudo /usr/sbin/squid -X -k rotate
and didn't see any messages that seemed relevant.

However, when I do what the squid.conf file explicitly tells you not to do:

sudo kill -USR1 <pid of squid>

I do get rotated log files.

Here's the uname -a output:

Linux proxy-stage.chfops.net 2.6.9-023stab044.11-enterprise #1 SMP Sun Sep 30 12:15:39 MSD 2007 i686 i686 i386 GNU/Linux

I'm confused on how to best rotate squid's log files. I googled for some help, but most of what turned up was just pointers to the FAQ. I also searched on the mailing list (via MARC), but most of the answers were 7 years old and didn't contain any useful information.

Thanks for any suggestions.


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

  Powered by Linux