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

pumactl restart or SIGUSR2 actually kills puma server instead of restarting #1378

Closed
vizcay opened this issue Jul 27, 2017 · 2 comments
Closed

Comments

@vizcay
Copy link
Contributor

vizcay commented Jul 27, 2017

Environment

Puma: 3.9.1
Ruby: 2.3.3p222

I've just configured puma in a new rails 5.0 application, config/puma/production.rb:

threads 4, 8
workers 2
bind "unix://tmp/sockets/puma.sock"
daemonize true
preload_app!
activate_control_app "unix://tmp/sockets/pumactl.sock", { auth_token: '12345' }
pidfile "tmp/pids/puma.pid"
state_path "tmp/pids/puma.state"
plugin :tmp_restart

on_worker_boot do
  ActiveRecord::Base.establish_connection if defined?(ActiveRecord)
end

Problem

Puma runs great by bundle exec puma -e production. I can stop and restart the server by bundle exec pumactl -P tmp/pids/puma.pid start and bundle exec pumactl -P tmp/pids/puma.pid stop.

But when I try to restart bundle exec pumactl -P tmp/pids/puma.pid restart the puma server gets killed. Also, I've tried to send the signal directly by sudo kill -SIGUSR2 #pid# to be sure pumactl is not responsible.

Any ideas?

@prashantvithani
Copy link

The issue might be similar to #1308

@vizcay
Copy link
Contributor Author

vizcay commented Jul 27, 2017

@prashantvithani yes it's looks like an exact duplicate, sorry.

@vizcay vizcay closed this as completed Jul 27, 2017
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

2 participants