intelligent-agent / Reflash

Flasher image for Refactor distro for use with Recore 3D printer board
GNU Affero General Public License v3.0
2 stars 0 forks source link

Stopping the reflash service takes a long time #54

Closed eliasbakken closed 11 months ago

eliasbakken commented 11 months ago

When stopping the reflash.service, the service takes a long time to stop. It seems the SIGTERM signal is not respected, most likely due to the long running thread for SSE (Server Sent Events) of the logging. The service eventually stops, but that is likely the result of the SIGKILL signal sent after 90 seconds. It does not explain why it shuts down after 30 seconds though...

debian@recore:~$ time sudo systemctl restart reflash

real    0m30.376s
user    0m0.039s
sys 0m0.039s
eliasbakken commented 11 months ago

The service is now stopped with SIGKILL. Maybe a bit overkill (no pun intended), but at least it is fast.