简体   繁体   English

在Ubuntu中重新启动Puma

[英]Restarting Puma in Ubuntu

Why must I restart Puma twice in Ubuntu for it to work? 为什么必须在Ubuntu中重新启动Puma两次才能运行?

# 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...]

I wouldn't trust this pumactl script. 我不相信这个pumactl脚本。 Just use kill -SIGUSR2 <pid> as recommended in the puma documentation itself : https://github.com/puma/puma . 只需按照puma文档本身的建议使用kill -SIGUSR2 <pid>https : //github.com/puma/puma

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM