Re: [squid-users] howto kill workers

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Fri, 11 Nov 2011 11:38:34 +1300

On 10/11/2011 10:48 p.m., Sergey Naumov wrote:
> Hello.
>
> I am using squid-3.2.0.13-r11414 and wonder howto kill squid workers.
> Killing by pid from start-stop-daemon or pid from file specified in
> pid_filename does not work because it kills only squid-coord. Is there
> a way to kill squid processes except of killall?

Depends on whether you just want to shutdown the worker or do a hard kill.

The "proper" way is to shutdown via the manager:
    squidclient mgr:shutdown?workers=2
(to kill worker "kid2")

For a hard-kill use the PID displayed by the "ps" tool.

>
> And yet another question: is squid-coord a worker with special
> functions or it is only a coordinator?

Yes with 2+ workers it is the coordinator.

> I am asking because if I
> specify "workers 2" in squid.conf and want to assign 2 squidGuards to
> each worker, then 3 squid processes spawned (1 coord, 2 workers) and
> therefore - 6 squidGuards. So if squid-coord is a worker, then only 2
> processes should be spawned, and if not - there is no need for
> squidGuards for coordinator, I think.

Correct. Thank you. Please report that bug.

Amos
Received on Thu Nov 10 2011 - 22:39:03 MST

This archive was generated by hypermail 2.2.0 : Fri Nov 11 2011 - 12:00:02 MST