mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-07-13 12:05:09 +00:00
Add .paused file when server is paused (#1830)
This commit is contained in:
@@ -1720,6 +1720,8 @@ On startup the `server.properties` file is checked and, if applicable, a warning
|
||||
|
||||
The utility used to wake the server (`knock(d)`) works at network interface level. So the correct interface has to be set using the `AUTOPAUSE_KNOCK_INTERFACE` variable when using non-default networking environments (e.g. host-networking, Portainer oder NAS solutions). See the description of the variable below.
|
||||
|
||||
A file called `.paused` is created in `/data` directory when the server is paused and removed when the server is resumed. Other services may check for this file's existence before waking the server.
|
||||
|
||||
A starting, example compose file has been provided in [examples/docker-compose-autopause.yml](examples/docker-compose-autopause.yml).
|
||||
|
||||
### Enabling Autopause
|
||||
|
||||
Reference in New Issue
Block a user