Search squid archive

Re: howto kill workers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux