Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a callback function for a graceful shutdown #55

Open
fcgravalos opened this issue Jul 30, 2016 · 0 comments
Open

Provide a callback function for a graceful shutdown #55

fcgravalos opened this issue Jul 30, 2016 · 0 comments

Comments

@fcgravalos
Copy link

First, thanks for writing this library, is very simple to use.

I think that would be useful to have a callback like the start one to be executed when SIGTERM signal is received.

daemon = Daemonize(app='my_daemon',
                           user='user', group='group',
                           pid='/tmp/daemon.pid', foreground=Fase,
                           action=start, shutdown_cb=stop, auto_close_fds=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant