Re: [squid-users] restart redirectors only patch

From: Henrik Nordstrom <>
Date: Sun, 18 Mar 2001 00:23:12 +0100

Valentin Chopov wrote:
> This is a small patch to squid-2.4/src/main.c which replaces
> "-k debug" option (I don't need to switch to debug mode while squid is
> running)

Unless ofcourse you run into a problem and one of the developers want's
you to for a short while... (squid -k debug should only be used for as
short period as possible, only as needed to reproduce the bug/issue

> with "-k redirect" which is restarting all redirectors only.
> kill -USR2 `cat` can be used also. I tested this on FreeBSD
> only.
> This is useful for squidGuard, which needs for full reconfiguring to run
> squid -k reconfugure (kill -HUP `cat`), but if you need to do
> this very often it's not good for squid:)

I have a very similar patch that restarts all helpers while rotating
logs. See somewhere, or try one of the
Squid-2.5 snapshots. If logfile_rotate is set to 0 then the effect is
mostly the same as your patch.

Henrik Nordstrom
Squid hacker
Received on Sat Mar 17 2001 - 16:23:32 MST

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