Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need Help: May openresty catch signal in lua? #16

Open
fly3366 opened this issue May 27, 2021 · 0 comments
Open

Need Help: May openresty catch signal in lua? #16

fly3366 opened this issue May 27, 2021 · 0 comments

Comments

@fly3366
Copy link

fly3366 commented May 27, 2021

Could openresty catch signal SIGTERM when container will exit?
Is hook named "exit_worker_by_lua" for this?

I have use lua-resty-shell to create task and save pids, and I want kill them when container exited. Any best practice?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant