Giter VIP home page Giter VIP logo

Comments (3)

Angatar avatar Angatar commented on July 19, 2024

Hi, Thx for reporting this... usually prod servers are quite stable and as we schedule to destroy containers on a regular basis to replace them with new ones so that we are close to immutability, we never encountered this issue before.
BTW, this container declares volumes for important data (lists, archives, tls cert...) so they won't disappear after container replacement.
But you are right, a graceful stop of the processes in this container while a "docker stop" is asked is consistent (containers are too often maltreated as they are replaceable) and it would fix immediately this stop/start issue in case of a server reboot so that it won't have to wait a container replacement to be fixed.
The "docker stop" command sends an initial SIGTERM signal to PID1 and if no termination happens during the defined grace period it kills them with a SIGKILL. As this container was conceived rather like a convenient mailing list tools deployment than a standard functional container the PID1 is given to the run.sh start script that runs several services and indeed doesn't transmit, for now, the termination signal to the services started.

So I'm gonna add a few lines ASAP to the run.sh script to stop the services properly when a SIGTERM is received.
I'll tell you when the updated script is pushed so that you can pull the new d3fk/mailman2:latest container version.

from mailman2.

Angatar avatar Angatar commented on July 19, 2024

The new version of the run.sh script has now been pushed and the container automatically built by Docker Hub ... a simple docker pull d3fk/mailman2 before deploying a new mailman container should fix this issue on your next server reboot or container stop/start cycle.

from mailman2.

optiprime avatar optiprime commented on July 19, 2024

Your fix has worked excellently. Thank you very much! :-)

from mailman2.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.