mirror of
https://github.com/timvisee/lazymc.git
synced 2025-05-19 04:40:22 -07:00
Add config option for process freezing
This commit is contained in:
parent
2c43446ed0
commit
3185ca855c
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user