Initial commit
This commit is contained in:
17
bin/daemons
Normal file
17
bin/daemons
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env ruby
|
||||
|
||||
# encoding: UTF-8
|
||||
# frozen_string_literal: true
|
||||
|
||||
APP_ROOT = File.expand_path('..', __dir__)
|
||||
|
||||
def daemons
|
||||
system 'nohup bundle exec ruby lib/daemons/amqp_daemon.rb matching >/dev/null 2>&1 &'
|
||||
system 'nohup bundle exec ruby lib/daemons/amqp_daemon.rb trade_executor >/dev/null 2>&1 &'
|
||||
system 'nohup bundle exec ruby lib/daemons/amqp_daemon.rb order_processor >/dev/null 2>&1 &'
|
||||
end
|
||||
|
||||
Dir.chdir APP_ROOT do
|
||||
daemons
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user