Skip to content

fix: gracefully exit on sigterm

pini requested to merge pini-gh/duniter:pini-docker-sigterm into dev

The purpose is to avoid duniter database corruption on docker stop.

Before that sigterm was ignored, causing docker instance being force-killed on docker stop command after the related timeout expiration.

Exerpt from the docker stop manpage:

The main process inside the container will receive SIGTERM, and after a grace period, SIGKILL

Merge request reports