bin/riemann-babbler in riemann-babbler-0.4.0 vs bin/riemann-babbler in riemann-babbler-0.4.1
- old
+ new
@@ -28,11 +28,11 @@
# merge configs
config_file = if File.exist?( opts[:config] )
YAML.load_file( opts[:config] ).to_hash
else
- log.error "Can't load config file #{opts[:config]}"
+ logger.error "Can't load config file #{opts[:config]}"
Hash.new
end
config_default = YAML.load_file( File.expand_path('../../config.yml', __FILE__) )
@@ -68,10 +68,10 @@
Thread.new {
plugin.new( configatron, logger ).run
}
end
-Signal.trap "USR1" do
+Signal.trap "USR2" do # перехватываем сообщение (на будущее)
plugin_threads.each( &:kill )
end
plugin_threads.each( &:join )