mirror of
https://github.com/timvisee/lazymc.git
synced 2025-05-19 12:50:23 -07:00
Rename sleep_on_start to wake_on_start
This commit is contained in:
parent
9874c9dd30
commit
db0552f2e5
@ -19,8 +19,8 @@ command = "java -Xmx1G -Xms1G -jar server.jar --nogui"
|
||||
# Internal IP and port of server started by lazymc to proxy to.
|
||||
address = "127.0.0.1:25566"
|
||||
|
||||
# Start sleeping when starting lazymc.
|
||||
sleep_on_start = true
|
||||
# Immediately wake server when starting lazymc.
|
||||
wake_on_start = false
|
||||
|
||||
[time]
|
||||
# Sleep after number of seconds.
|
||||
|
@ -100,8 +100,8 @@ pub struct Server {
|
||||
#[serde(alias = "address_ingress")]
|
||||
pub address: SocketAddr,
|
||||
|
||||
/// Immediately start sleeping when starting lazymc.
|
||||
pub sleep_on_start: bool,
|
||||
/// Immediately wake server when starting lazymc.
|
||||
pub wake_on_start: bool,
|
||||
}
|
||||
|
||||
/// Time configuration.
|
||||
|
@ -42,7 +42,7 @@ pub async fn service(config: Arc<Config>) -> Result<(), ()> {
|
||||
tokio::spawn(service::signal::service(server_state.clone()));
|
||||
|
||||
// Initiate server start
|
||||
if !config.server.sleep_on_start {
|
||||
if config.server.wake_on_start {
|
||||
server::start_server(config.clone(), server_state.clone());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user