Force start mailman inside the container.

Even though the 'master.lck' is supposed to prevent race conditions, it needs to
be manually removed if the container did not shutdown gracefully. Remove the
manual check for the lock file and force mailman to remove it.

Also, set the stop_grace_period to 30s, which would allow Core to stop
gracefully and not leave the lock file over. Default value in case of Docker is 10s.
This commit is contained in:
Abhilash Raj
2017-11-03 10:36:58 -07:00
committed by Abhilash Raj
parent d531dbc853
commit 743bc8522c
3 changed files with 2 additions and 10 deletions

View File

@@ -7,6 +7,7 @@ services:
hostname: mailman-core
volumes:
- /opt/mailman/core:/opt/mailman/
stop_grace_period: 30s
links:
- database:database
depends_on: