Add reload handler to Events module.
authorStefan Schantl <stefan.schantl@ipfire.org>
Wed, 3 Feb 2016 08:33:50 +0000 (09:33 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Wed, 3 Feb 2016 08:33:50 +0000 (09:33 +0100)
This allows to call a Reload by sending the corresponding
command via socket.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
modules/Events.pm

index cfc785f..b70bbb5 100644 (file)
@@ -12,6 +12,7 @@ my %commands = (
        'block' => \&CallBlock,
        'unblock' => \&CallUnblock,
        'flush' => \&CallFlush,
+       'reload' => \&main::Reload,
 );
 
 # Hash to store addresses and their current count.