How to get the nginx command line event/signal like{ openresty -p "xx/xx" -c ""xx.conf" -s stop }

51 views
Skip to first unread message

benjami...@zoom.us

unread,
Oct 10, 2018, 7:39:16 AM10/10/18
to openresty-en
Hi all:
     I don't know what is the difference between  command {nginx servie stop}   and command {openresty -s stop}
     And for my question.
     I should get the stop/restart signal to do some flushing operation.
     Is there any way to catch the signal in openresty lua ?
     or Must I recompile the nginx source and write that in pure C ?
ANY HELP ?
    
              

benjami...@zoom.us

unread,
Oct 16, 2018, 9:46:15 PM10/16/18
to openresty-en
https://github.com/Kong/lua-resty-worker-manager
I find something in the github and it is not done by far.
So may be .
I will do a good job about this module .
and upload to the github.
Reply all
Reply to author
Forward
0 new messages