mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
- disable signal-invoked shutdown for now. Need to refactor so it'll be
easier to do this.
This commit is contained in:
parent
9ba030bedd
commit
ffeade9083
2 changed files with 13 additions and 8 deletions
|
@ -429,15 +429,15 @@ class LogStash::Agent
|
|||
##end
|
||||
#end # SIGUSR1
|
||||
|
||||
Signal.trap("INT") do
|
||||
@logger.warn("SIGINT received, shutting down.")
|
||||
shutdown
|
||||
end
|
||||
#Signal.trap("INT") do
|
||||
#@logger.warn("SIGINT received, shutting down.")
|
||||
#shutdown
|
||||
#end
|
||||
|
||||
Signal.trap("TERM") do
|
||||
@logger.warn("SIGTERM received, shutting down.")
|
||||
shutdown
|
||||
end
|
||||
#Signal.trap("TERM") do
|
||||
#@logger.warn("SIGTERM received, shutting down.")
|
||||
#shutdown
|
||||
#end
|
||||
end # def register_signal_handlers
|
||||
|
||||
private
|
||||
|
|
|
@ -42,4 +42,9 @@ class LogStash::Inputs::Beanstalk < LogStash::Inputs::Base
|
|||
job.delete
|
||||
end
|
||||
end # def run
|
||||
|
||||
public
|
||||
def teardown
|
||||
@beanstalk.close rescue nil
|
||||
end # def teardown
|
||||
end # class LogStash::Inputs::Beanstalk
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue