-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 27 Mar 2006 at 13:03, lawrence wang wrote: Date sent: Mon, 27 Mar 2006 13:03:07 -0500 From: "lawrence wang" <levity@xxxxxxxxx> To: "Mark Elsen" <mark.elsen@xxxxxxxxx> Copies to: squid-users@xxxxxxxxxxxxxxx Subject: Re: rotate bug? > i get the following in squid_cache.log when i rotate: > > 2006/03/27 18:01:30| storeDirWriteCleanLogs: Starting... > 2006/03/27 18:01:31| Finished. Wrote 5793 entries. > 2006/03/27 18:01:31| Took 0.0 seconds (2736419.5 entries/sec). > 2006/03/27 18:01:31| logfileRotate: /var/log/cdn/http/squid_store.log > 2006/03/27 18:01:31| helperOpenServers: Starting 50 'squirm' processes > > even when i set logfile_rotate 0, it still doesn't handle access.log > correctly, and keeps writing to the old file after i rename it, until > i restart squid. i'm using aufs; does that make a difference? > Not sure if it is the same, but I had this problem with another log file, and found that copying it instead of renaming it, and then removing the file worked. Probable renaming keeps the file handle the same, and it continues to access the same file. Removing the file after copying make it create a new one. It might be the same with this one. > On 3/25/06, Mark Elsen <mark.elsen@xxxxxxxxx> wrote: > > > hi, i was testing out squid -k rotate on squid-2.5STABLE12, and i > > > notice that cache.log and store.log rotate ok (*.0 files are created), > > > but access.log doesn't; furthermore, if i restart the server, > > > access.log is emptied, so i lose my old logs. > > > > > > if i rename the file after running rotate, it will keep writing to > > > that one and then write to a new file after restart. > > > > > > my access.log is named "squid_access.log" and it's in a non-standard > > > location; maybe that's why? > > > > > > > It can perfectly be in a none standard location , if so configured and or > > you are using log pointer directives in squid.conf. > > > > Is there anything in cache.log , when yoy try to rotate ? > > Look both in the end of the before-rotated cache.log (tail-ed) and in > > in the beginning > > of the new (head-ed) one. > > > > M. > > > +----------------------------------------------------------+ Michael D. Setzer II - Computer Science Instructor Guam Community College Computer Center mailto:mikes@xxxxxxxxxxxxxxxx mailto:msetzerii@xxxxxxxxx http://www.guam.net/home/mikes Guam - Where America's Day Begins +----------------------------------------------------------+ http://setiathome.berkeley.edu Number of Seti Units Returned: 19,471 Processing time: 32 years, 290 days, 12 hours, 58 minutes (Total Hours: 287,489) BOINC Seti@Home Total Credits 613003.944246 -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.8 -- QDPGP 2.61c Comment: http://community.wow.net/grt/qdpgp.html iQA/AwUBRCgAiSzGQcr/2AKZEQJn1QCggbdzjIq3YZ6VCG7EGS/lxokCqbEAn0Dd 2WvS9j87AjVssP8H661IpCKG =4vPZ -----END PGP SIGNATURE-----