]> git.proxmox.com Git - proxmox-firewall.git/commitdiff
service: add comment for disable flag
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 26 Apr 2024 15:16:23 +0000 (17:16 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 26 Apr 2024 15:16:24 +0000 (17:16 +0200)
this is something that should be roughly covered directly in the code

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
proxmox-firewall/src/bin/proxmox-firewall.rs

index 31511d1fff198fe14fb1e59ed15f645bb8b1c514..f7e816e8f436660d39fd0966ec36071b5012a0aa 100644 (file)
@@ -85,6 +85,8 @@ fn main() -> Result<(), std::io::Error> {
     signal_hook::flag::register(signal_hook::consts::SIGTERM, Arc::clone(&term))?;
     signal_hook::flag::register(signal_hook::consts::SIGINT, Arc::clone(&term))?;
 
+    // simple flag that is set by legacy pve-firewall and provides a side-channel to signal that
+    // we're disabled here without the need to parse the config, avoiding log-spam errors from that
     let force_disable_flag = std::path::Path::new(FORCE_DISABLE_FLAG_FILE);
 
     while !term.load(Ordering::Relaxed) {