mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
Catch systemexit from kibana
This commit is contained in:
parent
759414cd67
commit
aef6671a81
1 changed files with 8 additions and 2 deletions
|
@ -80,7 +80,13 @@ module LogStash::Kibana
|
|||
#end
|
||||
end
|
||||
|
||||
args = opts.parse(args)
|
||||
begin
|
||||
args = opts.parse(args)
|
||||
rescue SystemExit
|
||||
# if you ask for --help, optparse will exit.
|
||||
# capture it and return normally
|
||||
return []
|
||||
end
|
||||
|
||||
@thread = Thread.new do
|
||||
Cabin::Channel.get.info("Starting web server", :settings => settings)
|
||||
|
@ -94,7 +100,7 @@ module LogStash::Kibana
|
|||
|
||||
public
|
||||
def wait
|
||||
@thread.join
|
||||
@thread.join if @thread
|
||||
return 0
|
||||
end # def wait
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue