Link: Handling SIGQUIT to gracefully shutdown Starman Implemented QUIT handler to gracefully shutdown Starman workers (and full graceful restart with Server::Starter) — one of the ugliest monkeypatch I’ve written in a few months. HUPのリスタート処理がlinux環境で app.psgi 以外のファイルパスを使っていた場合にうまく動いていなかったのを直したのと同時に、Server::Starter対応の部分で、デフォルトでTERMを受け取ったらgraceful shutdownしないといけないのが、そこが実装されてなかったのに気づいた。というわけで、SIGQUIT