class ThinkingSphinx::Commands::Stop

Public Instance Methods

call() click to toggle source
# File lib/thinking_sphinx/commands/stop.rb, line 2
def call
  unless controller.running?
    log 'searchd is not currently running.'
    return
  end

  pid = controller.pid
  until !controller.running? do
    controller.stop options
    sleep(0.5)
  end

  log "Stopped searchd daemon (pid: #{pid})."
end

Private Instance Methods

type() click to toggle source
# File lib/thinking_sphinx/commands/stop.rb, line 19
def type
  'stop'
end