class ThinkingSphinx::Commands::StartAttached
Public Instance Methods
call()
click to toggle source
# File lib/thinking_sphinx/commands/start_attached.rb, line 4 def call FileUtils.mkdir_p configuration.indices_location unless skip_directories? unless pid = fork controller.start :verbose => options[:verbose], :nodetach => true end Signal.trap('TERM') { Process.kill(:TERM, pid) } Signal.trap('INT') { Process.kill(:TERM, pid) } Process.wait(pid) end
Private Instance Methods
type()
click to toggle source
# File lib/thinking_sphinx/commands/start_attached.rb, line 19 def type 'start' end