Make graceful termination time configurable
From hgitaly/server/mono.py:
GRACEFUL_SHUTDOWN_TIMEOUT_SECONDS = 300
It means in particular that a worker being restarted by the main process for RAM pressure takes up to 5 minutes to shut down, meaning that the OOMKiller can act before.