Skip to content

Provide a callback function for a graceful shutdown #55

@fcgravalos

Description

@fcgravalos

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions