mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-07-12 11:35:09 +00:00
Startup fail-fast with error message if both ENABLE_AUTOPAUSE=true and EXEC_DIRECTLY=true are set. (#1186)
This commit is contained in:
@@ -1327,6 +1327,8 @@ If you would like to `docker attach` to the Minecraft server console with color
|
|||||||
> This will bypass graceful server shutdown handling when using `docker stop`, so be sure the server console's `stop` command.
|
> This will bypass graceful server shutdown handling when using `docker stop`, so be sure the server console's `stop` command.
|
||||||
>
|
>
|
||||||
> Make to enable stdin and tty with `-it` when using `docker run` or `stdin_open: true` and `tty: true` when using docker compose.
|
> Make to enable stdin and tty with `-it` when using `docker run` or `stdin_open: true` and `tty: true` when using docker compose.
|
||||||
|
>
|
||||||
|
> This feature is incompatible with Autopause and cannot be set when `ENABLE_AUTOPAUSE=true`.
|
||||||
|
|
||||||
### Server Shutdown Options
|
### Server Shutdown Options
|
||||||
|
|
||||||
@@ -1444,6 +1446,8 @@ Enable the Autopause functionality by setting:
|
|||||||
-e ENABLE_AUTOPAUSE=TRUE
|
-e ENABLE_AUTOPAUSE=TRUE
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Autopause is not compatible with `EXEC_DIRECTLY=true` and the two cannot be set together.
|
||||||
|
|
||||||
The following environment variables define the behaviour of auto-pausing:
|
The following environment variables define the behaviour of auto-pausing:
|
||||||
* `AUTOPAUSE_TIMEOUT_EST`, default `3600` (seconds)
|
* `AUTOPAUSE_TIMEOUT_EST`, default `3600` (seconds)
|
||||||
describes the time between the last client disconnect and the pausing of the process (read as timeout established)
|
describes the time between the last client disconnect and the pausing of the process (read as timeout established)
|
||||||
|
|||||||
@@ -32,6 +32,10 @@ if [ ! -e /data/eula.txt ]; then
|
|||||||
writeEula
|
writeEula
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if isTrue "${ENABLE_AUTOPAUSE}" && isTrue "${EXEC_DIRECTLY:-false}"; then
|
||||||
|
log "EXEC_DIRECTLY=true is incompatible with ENABLE_AUTOPAUSE=true"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ $PROXY ]]; then
|
if [[ $PROXY ]]; then
|
||||||
export http_proxy="$PROXY"
|
export http_proxy="$PROXY"
|
||||||
|
|||||||
Reference in New Issue
Block a user