hive-c0re, hive-priv: demote three routine, non-actionable log sites
This commit is contained in:
parent
77034a7c9c
commit
25893d0f95
3 changed files with 46 additions and 3 deletions
|
|
@ -491,8 +491,14 @@ async fn exec(
|
|||
async fn start_container(name: &str) -> Result<(String, String)> {
|
||||
validate_agent_name(name)?;
|
||||
let machine = container_system_name(name);
|
||||
// Silenced: a first-time create means the unit doesn't exist yet, and
|
||||
// `systemctl`'s own "Unit ... not loaded" complaint for that case would
|
||||
// otherwise land in the journal at error priority on every such start —
|
||||
// routine, not a signal, since the result is already discarded below.
|
||||
let _ = Command::new("systemctl")
|
||||
.args(["reset-failed", &format!("container@{machine}.service")])
|
||||
.stdout(std::process::Stdio::null())
|
||||
.stderr(std::process::Stdio::null())
|
||||
.status()
|
||||
.await;
|
||||
container_run(&["start", &machine]).await
|
||||
|
|
|
|||
Loading…
Reference in a new issue