Welcome! Log In Create A New Profile

Advanced

Re: init module callback called twice

Maxim Dounin
April 08, 2021 11:22AM
Hello!

On Thu, Apr 08, 2021 at 09:48:41AM -0400, xdrew wrote:

> Thanks Maxim, this makes perfect sense! However the part of the question
> still stands: is there a way from ngx_cycle_t structure or from some global
> structure to figure out in which mode nginx is running - testing the
> configuration or actually starting?

In most casses a properly written module shouldn't care. If for
some reason your module should, there is the ngx_test_config
global variable which makes it possible to check if nginx is
testing a configuration rather than parsing a new configuration
when starting or reloading.

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

init module callback called twice

xdrew April 08, 2021 05:54AM

Re: init module callback called twice

Maxim Dounin April 08, 2021 09:12AM

Re: init module callback called twice

xdrew April 08, 2021 09:48AM

Re: init module callback called twice

Maxim Dounin April 08, 2021 11:22AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 58
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready