Hi!
There is a nice API here: https://github.com/openresty/lua-resty-core/blob/master/lib/ngx/process.md . But it cannot instruct the master to exit. Maybe you can use the crontab?
On Wednesday, December 6, 2017 at 6:23:36 AM UTC+8, Nelson, Erik - 2 wrote:
Is there some API to shut down the entire nginx server (master, workers)? What would folks recommend to accomplish this? (for example, set a timer to run for
100 seconds and then shut down)
Thanks
Erik
This message, and any attachments, is for the intended recipient(s) only, may contain information that is privileged, confidential and/or proprietary and subject to important terms and conditions available at
http://www.bankofamerica.com/emaildisclaimer. If you are not the intended recipient, please delete this message.