mirror of
https://git.proxmox.com/git/proxmox-firewall
synced 2025-10-04 10:28:19 +00:00
service: add comment for disable flag
this is something that should be roughly covered directly in the code Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
7acba538b8
commit
97b31ad885
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user