Skip to content

Commit 0ff1e99

Browse files
authored
Provide ability to skip STOP_SERVER_ANNOUNCE_DELAY on demand (#3280)
1 parent 319315a commit 0ff1e99

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ RUN easy-add --var os=${TARGETOS} --var arch=${TARGETARCH}${TARGETVARIANT} \
4545
--var version=${MC_MONITOR_VERSION} --var app=mc-monitor --file {{.app}} \
4646
--from ${GITHUB_BASEURL}/itzg/{{.app}}/releases/download/{{.version}}/{{.app}}_{{.version}}_{{.os}}_{{.arch}}.tar.gz
4747

48-
ARG MC_SERVER_RUNNER_VERSION=1.12.3
48+
ARG MC_SERVER_RUNNER_VERSION=1.12.4
4949
RUN easy-add --var os=${TARGETOS} --var arch=${TARGETARCH}${TARGETVARIANT} \
5050
--var version=${MC_SERVER_RUNNER_VERSION} --var app=mc-server-runner --file {{.app}} \
5151
--from ${GITHUB_BASEURL}/itzg/{{.app}}/releases/download/{{.version}}/{{.app}}_{{.version}}_{{.os}}_{{.arch}}.tar.gz

docs/configuration/misc-options.md

+10
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,16 @@ To allow time for players to finish what they're doing during a graceful server
5555

5656
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.
5757

58+
The `STOP_SERVER_ANNOUNCE_DELAY` can be bypassed by sending a `SIGUSR1` signal to the `mc-server-runner` process.
59+
60+
`docker`:
61+
62+
docker stop --signal SIGUSR1 mc
63+
64+
`docker compose`:
65+
66+
docker compose kill --signal SIGUSR1
67+
5868
## Configuration Options for Minecraft Server Health Monitoring
5969

6070
The image tags include specific variables to simplify configuration for monitoring the health of a Minecraft server:

0 commit comments

Comments
 (0)