Class: Bosh::Agent::Runner
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Runner
constructor
A new instance of Runner.
- #start ⇒ Object
Constructor Details
Class Method Details
Instance Method Details
#start ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/bosh_agent/runner.rb', line 12 def start $stdout.sync = true @logger.info("Starting agent #{VERSION}...") @logger.info('Configuring agent...') Bootstrap.new.configure if Config.configure Monit.enable Monit.start Monit.start_services end if Config.mbus.start_with?('https') @logger.info('Starting up https agent') require 'bosh_agent/http_handler' HTTPHandler.start else Handler.start end end |