Skip to content

Support graceful shutdown #4

@Rillke

Description

@Rillke

When attempting to shutdown the spamassessin container, it takes the timeout time until the container stops because the SIGTERM signal is not processed by all processes in the container. This causes the docker daemon to perform a forced shutdown after timeout passed, potentially causing data corruption, loss of time each time the container is stopped and other issues.

Expected: Graceful shoutdown.

How to reproduce: docker stop spamassessin

Further reading: https://medium.com/@gchudnov/trapping-signals-in-docker-containers-7a57fdda7d86

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