No description
restarter | ||
sidwrapper | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
LICENSE | ||
README.md |
restarter
A hacky server restarter & suspender for my 1.7.10 SMP.
If you'd like to use this with newer versions of Minecraft, please make sure you first disable the watchdog as the watchdog will likely kill the server on wakes from long suspends. This can be done on Paper with the JVM argument -Ddisable.watchdog=true
.
Also make sure that the directory you're running the executable in contains server.properties, as the program attempts to read from this file to get the server's port. Do not change the server port without first restarting this.
Environment Variables
Name | Default | Description |
---|---|---|
GRACE_SECS | 30 | How long should we wait for the server to start and for players to join? |
JAVA_PATH | java | The Java executable to execute the server with |
SIDWRAPPER_PATH | sidwrapper | Where to find the sidwrapper executable necessary for safe shutdown upon Ctrl+C |
RESTART_SECS | 10 | How long should we wait between server restarts? |
SAVE_WAIT | 15 | How long we should wait for the server to finish running save-all before killing it |
PROXY_PORT | 42069 | Which port should the proxy run on? |
Supplying program arguments & JVM arguments
Non-environment arguments are all passed through to the java executable.