2

Puma を機能させるために、Ubuntu で Puma を 2 回再起動する必要があるのはなぜですか?

# uname -a
Linux myapp 3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:20:46 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

# pumactl -v
2.6.0

# pumactl -S /home/myapp/tmp/puma.state restart --config /home/myapp/config/puma.rb
Command restart sent success

[...that's not working, Puma is still running...]

# pumactl -S /home/myapp/tmp/puma.state restart --config /home/myapp/config/puma.rb
[9703] Puma starting in cluster mode...
[9703] * Version 2.6.0, codename: Pantsuit Party
[9703] * Min threads: 0, max threads: 16
[9703] * Environment: production
[9703] * Process workers: 2
[9703] * Phased restart available
[9703] * Listening on unix:///home/myapp/tmp/puma.sock
[9703] * Daemonizing...

[...ok now it worked...]
4

1 に答える 1

1

この pumactl スクリプトは信用できません。kill -SIGUSR2 <pid>puma のドキュメント自体で推奨されているとおりに使用してください: https://github.com/puma/puma

于 2015-05-14T07:45:07.467 に答える