feat(healing): add post-restart verification and heal outcome telemetry
This commit is contained in:
1 parent
b2c489602a
commit
234224a5c6
3 files changed
+46
-2
No files matched your search
@@ -121,8 +121,10 @@ class FirewallAuditor:
|
||||
try:
|
||||
subprocess.run(["systemctl", "restart", "crowdsec-firewall-bouncer"], check=True)
|
||||
logging.info("Heal: Bouncer restarted successfully.")
|
||||
return True
|
||||
except subprocess.CalledProcessError as e:
|
||||
logging.error(f"Heal Failed: Could not restart bouncer: {e}")
|
||||
return False
|
||||
|
||||
def reconcile(self):
|
||||
truth_map = self.get_remote_lapi_truth()
|
||||
|
||||
Reference in new issue
Block a user