Open RFHold opened 7 months ago
@RFHold yeah its a good point
This is causing me problems with docker, as the container will totally ignore docker's stop signal. Docker always sends a SIGINT signal then wait 30s before killing the container.
This causes me 2 issues:
I created PR #69 to handle system signals, @gornostay25 please review and merge.
Edit:
For anyone with the same problem, I currently solve this problem with STOPSIGNAL SIGKILL
at the end of my Dockerfile, this tells docker to send a SIGKILL directly and skip the 30s wait.
Currently on Mac and Docker, the only way for me to shut down the running server is to manually kill the process. This is not ideal for production environments. This feature was added to adapter-node with this issue https://github.com/sveltejs/kit/issues/9540