本文介绍了优雅地关闭 sidekiq 进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有谁知道如何找到 sidekiq 的 pidfile 来优雅地关闭它?运行 ps ax |grep sidekiq
然后运行 sidekiqctl stop
始终给出 no such pidfile
错误?Cntl-C 和 Cntl-D 似乎也没有效果.
Does anyone know how to find sidekiq's pidfile to gracefully shut it down?Running ps ax | grep sidekiq
and then running sidekiqctl stop <pid from grep>
consistently gives a no such pidfile
error?Cntl-C and Cntl-D also seem to have no effect.
关闭进程窗口并重新打开一个新窗口不会终止进程,因为它似乎作为守护进程运行.
Closing the process window and reopening a new window doesn't kill the process as it appears to be running as a daemon.
我发现唯一一致的修复方法是重新启动.
The only consistent fix I've found is rebooting.
推荐答案
用它来强行杀死 sidekiq.
Use this to kill sidekiq forcefully.
ps -ef | grep sidekiq | grep -v grep | awk '{print $2}' | xargs kill -9
这篇关于优雅地关闭 sidekiq 进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!