Unblock all blocked hosts when exiting guardian.
authorStefan Schantl <stefan.schantl@ipfire.org>
Mon, 4 Jul 2016 08:17:17 +0000 (10:17 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Mon, 4 Jul 2016 08:17:17 +0000 (10:17 +0200)
This commit will release all existing blocks when
stopping guardian.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
guardian.in

index 6896a27..bbf4eb5 100644 (file)
@@ -480,6 +480,9 @@ sub Shutdown () {
        # Stop all workers.
        &StopWorkers();
 
+       # Unblock all blocked hosts.
+       &Guardian::Events::CallFlush();
+
        # Remove socket file on exit.
        &Guardian::Socket::RemoveSocketFile();