Welcome! Log In Create A New Profile

Advanced

RE: RE: How to make nginx fail if it can't write to cache dir.

Reinis Rozitis
January 27, 2022 09:14AM
> I fail to see why it will keep on answering to new requests if it can't
fulfill any of them.

Because there might be other requests which can be answered without touching
the problematic cache directory?
While the error is critical (for the particular request) I don't think it
makes sense for nginx to stop/kill itself.

If you need such functionality/behavior maybe a simple script which checks
the nginx error log for 'crit' entries and performs 'killall -9 nginx' might
work in your case (or use something like sec
(https://simple-evcorr.github.io/) for example) ?

rr


_______________________________________________
nginx mailing list -- nginx@nginx.org
To unsubscribe send an email to nginx-leave@nginx.org
Subject Author Posted

How to make nginx fail if it can't write to cache dir.

unikron January 27, 2022 06:07AM

RE: How to make nginx fail if it can't write to cache dir.

Reinis Rozitis January 27, 2022 06:44AM

Re: RE: How to make nginx fail if it can't write to cache dir.

unikron January 27, 2022 07:57AM

RE: RE: How to make nginx fail if it can't write to cache dir.

Reinis Rozitis January 27, 2022 09:14AM

Re: RE: RE: How to make nginx fail if it can't write to cache dir.

unikron January 30, 2022 04:01AM

Re: RE: RE: How to make nginx fail if it can't write to cache dir.

Francis Daly February 01, 2022 03:48AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 154
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready