Документация и runtime: полный production-fix по fix6 без legacy
This commit is contained in:
@@ -183,6 +183,13 @@ pub fn print_status(cfg: &Config) -> anyhow::Result<()> {
|
||||
}
|
||||
}
|
||||
|
||||
println!("Swap:");
|
||||
println!(" enabled: {}", cfg.swap.enabled);
|
||||
println!(" path: {}", cfg.swap.path);
|
||||
println!(" size_mb: {}", cfg.swap.size_mb);
|
||||
println!(" priority: {}", cfg.swap.priority);
|
||||
println!(" swappiness: {}", cfg.swap.swappiness);
|
||||
|
||||
let ct_count = Command::new("sysctl")
|
||||
.args(["-n", "net.netfilter.nf_conntrack_count"])
|
||||
.output()
|
||||
@@ -220,7 +227,7 @@ pub fn print_status(cfg: &Config) -> anyhow::Result<()> {
|
||||
}
|
||||
}
|
||||
|
||||
print_reboot_section();
|
||||
print_reboot_section(cfg);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
@@ -301,12 +308,15 @@ fn print_degraded_sections(cfg: &Config) -> anyhow::Result<()> {
|
||||
}
|
||||
}
|
||||
|
||||
print_reboot_section();
|
||||
print_reboot_section(cfg);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn print_reboot_section() {
|
||||
fn print_reboot_section(cfg: &Config) {
|
||||
println!("Reboot scheduler:");
|
||||
println!(" enabled: {}", cfg.reboot.enabled);
|
||||
println!(" window_start_utc: {}", cfg.reboot.window_start_utc);
|
||||
println!(" window_end_utc: {}", cfg.reboot.window_end_utc);
|
||||
let svc = Command::new("systemctl")
|
||||
.args(["is-active", "awg2-reboot-scheduler"])
|
||||
.output();
|
||||
|
||||
Reference in New Issue
Block a user