You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Hemant Chaudhary <he...@gmail.com> on 2018/12/10 17:11:20 UTC

Re: [users@httpd] Graceful shutdown of apache

Hi,

I have updated apache-2.4.29 to apache-2.4.37 but still I am not able to
graceful shutdown in debug mode.

Can you please tell me how should achieve it. ? or let me know the function
which I should call for proper graceful shutdown.

Thank you
Hemant


On Wed, Nov 28, 2018 at 9:07 AM Hemant Chaudhary <
hemantdude.chaudhary@gmail.com> wrote:

> I am using apache-2.4.29 version.
>
> On Nov 28, 2018 4:32 AM, "Yann Ylavic" <yl...@gmail.com> wrote:
>
> Hi Hemant,
>
> On Mon, Nov 26, 2018 at 5:53 PM Hemant Chaudhary
> <he...@gmail.com> wrote:
> >
> > I am able to stop only by kill -9 signal.
>
> Which httpd version are you using?
>
> The latest one (2.4.37) has several improvements with regard to
> signals and -X mode.
>
> Regards,
> Yann.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
>

Re: [users@httpd] Graceful shutdown of apache

Posted by William A Rowe Jr <wr...@rowe-clan.net>.
On Mon, Dec 10, 2018 at 11:11 AM Hemant Chaudhary <
hemantdude.chaudhary@gmail.com> wrote:

> Hi,
>
> I have updated apache-2.4.29 to apache-2.4.37 but still I am not able to
> graceful shutdown in debug mode.
>
> Can you please tell me how should achieve it. ? or let me know the
> function which I should call for proper graceful shutdown.
>

Each MPM (event, worker, process) has it's own signaling architecture
between parent and child processes.

The parent process signaling is documented here;
https://httpd.apache.org/docs/2.4/stopping.html

You will need to review the behavior of the child signal handler specific
to the MPM you want to control.

Quoting the doc above; "You will notice many httpd executables running on
your system, but you should not send signals to any of them except the
parent, whose pid is in the PidFile. That is to say you shouldn't ever need
to send signals to any process except the parent. There are four signals
that you can send the parent: TERM, USR1, HUP, andWINCH, which will be
described in a moment."

So what you seek to do is, effectively undocumented/unsupported. Debug mode
is not a supported operating mode, as I mentioned earlier.

[users@httpd] Re: Graceful shutdown of apache

Posted by "@lbutlr" <kr...@kreme.com>.
On 10 Dec 2018, at 10:11, Hemant Chaudhary <he...@gmail.com> wrote:
> I have updated apache-2.4.29 to apache-2.4.37 but still I am not able to graceful shutdown in debug mode.

What do you mean by a graceful shutdown? The graceful command doesn’t shutdown apache. If you are using graceful-stop then that will either stop apache or report an error.

Please provide some logs.

-- 
This above all, to thine own self be true And it must follow, as the
night the day, Thou canst not then be false to any man.





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org