Aw: AW: Aw: [squid-users] Running two squid3 process, Why?

From: <pangj_at_arcor.de>
Date: Tue, 4 Aug 2009 15:08:18 +0200 (CEST)

 

----- Original Nachricht ----
Von: "Zeller, Jan" <jan.zeller_at_id.unibe.ch>
An: Amos Jeffries <squid3_at_treenet.co.nz>, Jeff Pang <pangj_at_arcor.de>
Datum: 04.08.2009 10:56
Betreff: AW: Aw: [squid-users] Running two squid3 process, Why?

> Hi all,
>
> would like to know if from user perspective the signal 6 will have a
> significant http service interruption.

If I remember that correctly, kill SIGTERM and SIGINT will tell squid processes to exit gracefully.
Certainly kill SIGKILL will kill them forcely.
When receiving SIGTERM and SIGINT, the parent will kill a TERM to its child, wait for child to exit (surely it's the time after child has finished the current request handling), then parent exit gracefully.
So most time you just need to say kill `cat squid.pid` and squid will behave correctly. This is what "squid -k shutdown" does?
use kill -9 `cat squid.pid` or "squid -k kill" to kill them forcely.

See also man kill under un*x.

--
Jeff Pang
eMail: pangj_at_arcor.de
Y! M: yonghua_peng
Plantschen oder Grog? Der Arcor-Wetterdienst weiss Bescheid!
Wassertemperaturen für den Urlaub jetzt checken:  www.arcor.de/rd/wetter_wasser
Received on Tue Aug 04 2009 - 13:08:37 MDT

This archive was generated by hypermail 2.2.0 : Tue Aug 04 2009 - 12:00:03 MDT