class ThinkingSphinx::Interfaces::Daemon

Public Instance Methods

start() click to toggle source
# File lib/thinking_sphinx/interfaces/daemon.rb, line 4
def start
  if command :running
    raise ThinkingSphinx::SphinxAlreadyRunning, 'searchd is already running'
  end

  command(options[:nodetach] ? :start_attached : :start_detached)
end
status() click to toggle source
# File lib/thinking_sphinx/interfaces/daemon.rb, line 12
def status
  if command :running
    stream.puts "The Sphinx daemon searchd is currently running."
  else
    stream.puts "The Sphinx daemon searchd is not currently running."
  end
end
stop() click to toggle source
# File lib/thinking_sphinx/interfaces/daemon.rb, line 20
def stop
  command :stop
end