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
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...