LoginSignup
0
0

More than 5 years have passed since last update.

supervisord下で動かしているデーモンに任意のシグナルを送る

Posted at

超ウルトラ小ネタ。

supervisord下で動かしているデーモンに任意のシグナルを送りたい場合は、以下を実行すれば、pidを調べる必要がありません。

$ supervisorctl signal <シグナル名> <プログラム名>

rails(puma)を一々 stop/startすると時間がかかってしょうがないので、 rolling restartさせるためにUSR1シグナルを送りたい場合は

$ supervisorctl signal USR1 rails

でOKです。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0