How to process SIGTERM signal gracefully? August 20, 2022 by Magenaut Let’s assume we have such a trivial daemon written in python: