Re: [SQU] 0-byte logfiles after rotation via cron

From: Bert Driehuis <bert_driehuis@dont-contact.us>
Date: Wed, 23 Aug 2000 15:58:56 +0200

"Itzinger, Oskar" wrote:

> 30 3 * * * /usr/sbin/squid -k rotate
> However, I found that <{access,store}.log> are 0-byte files now,
> although <cache.log> seems to be current. No extensions (.0, .1, etc)
> exist, though.

I've seen this behavior with Squid 2.2STABLE5 on FreeBSD. It is caused
by some weird interaction between the code that re-opens the log file,
and the openlog() function. If you start squid without the -s option the
problem will go away.

I've been tearing my hair out over this one, as I fail to see where in
the code the offending action with file descriptor 3 occurs...

You might give it a try -- you may have a different problem than I had
but it sounded too familiar...

Cheers,

                                        -- Bert

-- 
Bert Driehuis, MIS -- bert_driehuis@nl.compuware.com -- +31-20-3116119
Dihydrogen Monoxide kills! Join the campaign at http://www.dhmo.org/
--
To unsubscribe, see http://www.squid-cache.org/mailing-lists.html
Received on Wed Aug 23 2000 - 08:03:15 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:55:04 MST