Comments (3)
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.
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.
Your fix has worked excellently. Thank you very much! :-)
from mailman2.
Related Issues (10)
- exim4 relay not permitted error HOT 27
- mailman-request@ doesn't work because SYSTEM_ALIASES_PIPE_TRANSPORT is not set HOT 1
- syntax error in DKIM record with BIND 9.16.1-Ubuntu (Stable Release) HOT 3
- migrating from another server HOT 3
- Any docker-compose file for this tool? HOT 12
- Apache SSL certificate are not exposed as a docker volume HOT 2
- Admin interface crashed without prior config HOT 5
- Generated DKIM is too long for a TXT record HOT 1
- Digests don't work because run.sh doesn't start cron HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mailman2.