daemonize
daemonize copied to clipboard
Callbacks rework
After reading issue #55 , I just added a new self.sigterm_action parameter which allows the user to pass a custom function to be executed after SIGTERM signal is receive by the daemon. I also updated test/deamon_sigterm.py to this new behavior.
Could you rebase your PR from current master?