Re: non destructive 'kill -HUP' equivalent

From: Kevin Fink <kevin@dont-contact.us>
Date: Sun, 2 Nov 1997 12:44:06 -0800 (PST)

--MimeMultipartBoundary
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Sun, 2 Nov 1997, Oskar Pearson wrote:

> I think that we really need a function that will allow us to effectively
> 'kill -HUP' the server without trashing all the connections currently
> established.
 
> Which signal would we use? USR1 and USR2 are already taken, AFAIK.

I don't have it completely implemented yet, but my solution was to
overload HUP. The signal handler checks for a file (squid.hup) and
proceeds based on the directives contained in that file. If it doesn't
find it, it acts just like the normal version.

Using this method you can make it do a variety of different things without
needing lots and lots of different signals.

Kevin

------------------------------------------------------------------------------
 Kevin Fink <kevin@fink.com> N2H2, Creators of Bess
 http://www.fink.com/ 1301 Fifth Avenue, Suite 1501
 http://www.n2h2.com/ Seattle, WA 98101
------------------------------------------------------------------------------
 (206) 971-1400 VOICE (206) 971-1460 FAX (206) 680-7666 PAGER
------------------------------------------------------------------------------

--MimeMultipartBoundary--
Received on Tue Jul 29 2003 - 13:15:44 MDT

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