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
Do not close systemd activated socket on pumactl restart #2504
Comments
Thank you for the report, and sorry for the delay. I have a fix, but I've got one question. I can repo this, sort of. I need to start with:
rather than:
So, were you using |
No, I was not using that flag. AFAICT, adding that does not change anything |
Sorry I wasn't clear last night. I believe I've got a fix, working on a test... |
Describe the bug
When using systemd socket activation, issuing
pumactl restart
causes puma to close the systemd-activated socket, leaving the server inaccessible (but still running).Puma config:
systemd-socket-activate --listen=0.0.0.0:3001 bundle exec puma -C config/puma.rb hello.ru
To Reproduce
Use the template hello.ru and the above config (generated by a
rails new
, plus the control socket):Run it with:
Then issue a restart:
And observe that the inherited socket is closed:
And now the 3001 port is not accessible:
Expected behavior
I expected the inherited socket to continue being used after a restart, just as it works without socket activation.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: