From db165b5e1ebb3091a49029d739b68a913bc75db6 Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Tue, 24 Feb 2015 16:28:51 +0200 Subject: kill -hup reloads nodes --- lib/oxidized/core.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/oxidized/core.rb') diff --git a/lib/oxidized/core.rb b/lib/oxidized/core.rb index ba46f3a..4c67f4b 100644 --- a/lib/oxidized/core.rb +++ b/lib/oxidized/core.rb @@ -17,6 +17,7 @@ module Oxidized Oxidized.mgr = Manager.new nodes = Nodes.new @worker = Worker.new nodes + trap 'HUP' { nodes.load } if CFG.rest? begin require 'oxidized/web' -- cgit v1.2.1