diff options
author | Saku Ytti <saku@ytti.fi> | 2015-02-24 16:28:51 +0200 |
---|---|---|
committer | Saku Ytti <saku@ytti.fi> | 2015-02-24 16:28:51 +0200 |
commit | db165b5e1ebb3091a49029d739b68a913bc75db6 (patch) | |
tree | 4ea9288b7a3dc774a60cdbd096761df4da147f8e /lib/oxidized/core.rb | |
parent | 628f6dddc8fd41e07dba99e7fb41566b89d954c5 (diff) |
kill -hup reloads nodes
Diffstat (limited to 'lib/oxidized/core.rb')
-rw-r--r-- | lib/oxidized/core.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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' |