From 5470245b455a7827945510d06deb26d329cc60fb Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Mon, 7 Aug 2023 15:00:03 -0500 Subject: [PATCH] docs: clarify stop grace period given announce delay (#2325) --- docs/configuration/misc-options.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/configuration/misc-options.md b/docs/configuration/misc-options.md index 5dac0996..0e7d9d6a 100644 --- a/docs/configuration/misc-options.md +++ b/docs/configuration/misc-options.md @@ -61,9 +61,11 @@ If you would like to `docker attach` to the Minecraft server console with color To allow time for players to finish what they're doing during a graceful server shutdown, set `STOP_SERVER_ANNOUNCE_DELAY` to a number of seconds to delay after an announcement is posted by the server. -!!! warning +!!! warning "Increase stop grace period" - Be sure to adjust Docker's shutdown timeout accordingly, such as using [the -t option on docker-compose down](https://docs.docker.com/compose/reference/down/) or set the [stop_grace_period](https://docs.docker.com/compose/compose-file/05-services/#stop_grace_period) in the compose file. + The Docker stop grace period must be increased to a value longer than the announce delay. The value to use that is longer than announce delay will vary based upon the amount of time it takes for final world data saving. If the container exits with exit code 137, then that indicates a longer grace period is needed. + + The grace period can be increased using [the -t option on docker-compose down](https://docs.docker.com/compose/reference/down/) or set the [stop_grace_period](https://docs.docker.com/compose/compose-file/05-services/#stop_grace_period) in the compose file. ## OpenJ9 Specific Options