无法重新启动独角兽
我有一个 unicorn + nginx 设置,突然当我运行 cap unicorn:upgrade
(向主进程发送 USR2
)时,它没有为 .pid 文件添加前缀,并且它根本不会分叉一个新的主进程。当我打开日志文件时,我可以看到这一行,
reaped #<Process::Status: pid 32448 exit 10> exec()-ed
任何人都可以建议做些什么来看看出了什么问题吗?
谢谢
I have a unicorn + nginx setup and suddenly when I run cap unicorn:upgrade
(which sends a USR2
to the master process) it doesn't prefix the .pid file and it doesn't fork a new master process at all. When I open the log file I can see the line
reaped #<Process::Status: pid 32448 exit 10> exec()-ed
can anyone suggest something to do in order to see what's wrong?
Thanks
你的独角兽配置有
preload_app(true)
吗?如果出现这种情况,您可能需要发送 QUIT 信号。Does your unicorn config have
preload_app(true)
? You may need to send a QUIT signal if it does.