Re: logfile daemon stuff

From: Adrian Chadd <adrian@dont-contact.us>
Date: Wed, 9 Aug 2006 09:50:43 +0800

On Wed, Aug 09, 2006, Henrik Nordstrom wrote:

> One note: I assume you do know that ipcCreate() currently redirects
> stderr to cache.log at the time the ipc channel is created. This is why
> all helpers is restarted on "squid -k rotate".

Ah! I vaguely remember that.

> I think it would be a good idea to change this to have stderr from
> helpers returned back to Squid, who then logs it to the debug log.. This
> would allow us to not restart helpers on "squid -k rotate".

*nod*

> This is currently a little problem in setups using unlinkd, as the
> initial cache.log then gets locked by the unlinkd process which is never
> restarted. If I am not mistaken your new log helper shares this
> property.. Not a big deal on UNIXes as there the file becomes anonymous
> when the last name goes away, but not all platforms is this forgiving in
> handling renames/delete of open files..

Could the unlinkd process could be restarted in that case?

I'd like to work on getting the logfile helper stuff committed into
squid-2.6 first and then work on fixing the general ipcCreate()/stderr
stuff.

Adrian
Received on Tue Aug 08 2006 - 19:50:28 MDT

This archive was generated by hypermail pre-2.1.9 : Fri Sep 01 2006 - 12:00:03 MDT