No description
Find a file
2025-02-28 20:03:59 +00:00
restarter Update environment variables to be in-line with entrypoint.sh 2025-02-28 20:03:59 +00:00
sidwrapper Handle kill signals gracefully 2025-02-28 19:47:54 +00:00
.gitignore Initial commit 2025-02-27 02:11:45 +00:00
Cargo.lock Handle kill signals gracefully 2025-02-28 19:47:54 +00:00
Cargo.toml Handle kill signals gracefully 2025-02-28 19:47:54 +00:00
LICENSE Initial commit 2025-02-27 02:11:45 +00:00
README.md Update environment variables to be in-line with entrypoint.sh 2025-02-28 20:03:59 +00:00

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.