Re: What "squid -krestart" should do?

From: Alex Rousskov <rousskov_at_measurement-factory.com>
Date: Wed, 09 Jul 2014 11:34:59 -0600

On 07/08/2014 06:34 PM, Eliezer Croitoru wrote:

> So, What "squid -krestart" should do?

I am guessing it should issue an "unknown -k action" error and print
usage information because "restart" is not a documented -k action:

> " -k reconfigure|rotate|shutdown|interrupt|kill|debug|check|parse\n"

If we fix the documentation, it should probably nicely stop and then
automatically restart each SMP kid (or worker?) that exited. Perhaps do
nothing if there are no kids (or workers)?

The "automatically restart" part is already handled by the current code,
but, AFAIK, some kids (e.g., diskers) may malfunction if restarted.

We may also decide to remove all support for this option instead. Does
anybody know what the use cases for it are? What does this action try to
preserve compared to a full shutdown followed by regular start?
Disclaimer: I have not tried to research the commit log for this
feature, but if you want to modify/fix it, you should.

Cheers,

Alex.
Received on Wed Jul 09 2014 - 17:35:18 MDT

This archive was generated by hypermail 2.2.0 : Wed Jul 09 2014 - 12:00:19 MDT