Method: Riddle::Controller#start

Defined in:
lib/riddle/controller.rb

#start(options = {}) ⇒ Object



50
51
52
53
54
55
56
57
58
59
60
61
# File 'lib/riddle/controller.rb', line 50

def start(options = {})
  return if running?
  check_for_configuration_file

  command = "#{searchd} --pidfile --config \"#{@path}\""
  command = "#{command} --nodetach" if options[:nodetach]

  exec(command) if options[:nodetach]

  # Code does not get here if nodetach is true.
  Riddle::ExecuteCommand.call command, options[:verbose]
end