Welcome! Log In Create A New Profile

Advanced

master process

Yuval Abadi via nginx
August 04, 2023 11:30AM
Hi

I am writing plugin code that read the configuration, nginx.conf, and do some periodic continues processing.

In the configuration CBs, the process PID is not the MASTER, after NGINX start run he MASTER pid is other process.
It seems that temporary process read the nginx.conf. and then spawn the MASTER.
I don’t want to use the workers processes, I need only one instance. and I need the option to stop NGINX run, same as happened when nginx.conf is wrong, which is what my processing does at init.

How could I add code that run under the MASTER? Is any CB , event?
Or,
could use the initiating process, the one that read the conf, to do continues processing ?

Thanks

Yuval Abadi
_______________________________________________
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

master process

Yuval Abadi via nginx August 04, 2023 11:30AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 190
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