Add config option for process freezing

This commit is contained in:
[object Object]
2022-12-30 13:09:07 -08:00
parent 2c43446ed0
commit 3185ca855c

View File

@@ -174,6 +174,11 @@ pub struct Server {
)]
pub address: SocketAddr,
/// Freeze the server process instead of restarting it when no players online, making it start up faster.
/// Only works on Unix (Linux or MacOS)
#[serde(default = "bool_true")]
pub freeze_process: bool,
/// Immediately wake server when starting lazymc.
#[serde(default)]
pub wake_on_start: bool,