mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-12 09:17:05 +02:00
Cleanly exits from commands.
This commit is contained in:
parent
7a5c49e5e3
commit
d3febce937
@ -8,6 +8,7 @@ module FluentdUI
|
||||
option :pidfile, type: :string, default: File.expand_path('tmp/fluentd-ui.pid', ROOT)
|
||||
option :daemonize, type: :boolean, default: false
|
||||
def start
|
||||
trap(:INT) { puts "\nStopping..." }
|
||||
system(*%W(bundle exec rackup #{options[:daemonize] ? "-D" : ""} --pid #{options[:pidfile]} -p #{options[:port]} -E production #{ROOT}/config.ru))
|
||||
end
|
||||
|
||||
@ -40,6 +41,7 @@ module FluentdUI
|
||||
install dependency gems
|
||||
DESC
|
||||
def setup
|
||||
trap(:INT) { puts "\nStopping..." }
|
||||
system(*%W(bundle install))
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user