diff --git a/docs/command_bash.md b/docs/command_bash.md index 3027156..b1487aa 100644 --- a/docs/command_bash.md +++ b/docs/command_bash.md @@ -1,12 +1,12 @@ # Use bash script to start server -You may use a `bash` script to start your server, rather than invoking `java` -directly. This requires some changes though, to ensure your server properly -shuts down. +You may use a `bash` script to start your server rather than invoking `java` +directly. This requires some changes though to ensure your server properly shuts +down. -When `lazymc` wants to stop your server, it sends a [`SIGTERM`][sigterm] signal -to the server command to gracefully shut it down. `bash` ignores this signal by -default and keeps the server running. +When `lazymc` stops your server it sends a [`SIGTERM`][sigterm] signal to the +invoked server process to gracefully shut it down. `bash` ignores this signal by +default and keeps the Minecraft server running. You must configure `bash` to [forward][forward-signal] the signal to properly shutdown the Minecraft server as well. diff --git a/src/config.rs b/src/config.rs index 09f0757..624e9e7 100644 --- a/src/config.rs +++ b/src/config.rs @@ -25,7 +25,7 @@ pub fn load(matches: &ArgMatches) -> Config { if !path.is_file() { quit_error_msg( format!( - "Conig file does not exist: {}", + "Config file does not exist: {}", path.to_str().unwrap_or("?") ), ErrorHintsBuilder::default() diff --git a/src/server.rs b/src/server.rs index 47783a4..13316cc 100644 --- a/src/server.rs +++ b/src/server.rs @@ -153,7 +153,7 @@ impl ServerState { .map(|i| i >= Instant::now()) .unwrap_or(false); if keep_online { - info!("Not sleeping because of keep online"); + trace!(target: "lazymc", "Not sleeping because of keep online"); return false; } diff --git a/src/util/error.rs b/src/util/error.rs index 8de32ab..45fa6af 100644 --- a/src/util/error.rs +++ b/src/util/error.rs @@ -127,18 +127,18 @@ impl ErrorHints { // Print hints let bin = crate::util::bin_name(); - if self.config { - eprintln!( - "Use '{}' to select a config file", - highlight("--config FILE") - ); - } if self.config_generate { eprintln!( "Use '{}' to generate a new config file", highlight(&format!("{} config generate", bin)) ); } + if self.config { + eprintln!( + "Use '{}' to select a config file", + highlight("--config FILE") + ); + } if self.config_test { eprintln!( "Use '{}' to test a config file",