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