Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
デーモンのオプション :multiple => true の場合、バックグラウンド プロセスの複数のインスタンスを開始できます。
今、コマンド stop を実行すると、すべてのバックグラウンド プロセスが停止します。それらを個別に停止するにはどうすればよいですか?
注: pid で kill できることはわかっていますが、ティッカーも at_exit にしたいのです。
at_exitプロセスを強制終了するときに適切なシグナルを使用すれば、コードは引き続き実行されます。たとえば、SIGINTではなく使用する場合SIGKILL
at_exit
SIGINT
SIGKILL
Process.kill('SIGINT', pid)