Документация и runtime: полный production-fix по fix6 без legacy

This commit is contained in:
2026-05-10 22:58:59 +05:00
parent 83c4e3ba05
commit 819cc9c308
12 changed files with 106 additions and 267 deletions
+13 -3
View File
@@ -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();