优雅地关闭 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