class RtSphinx::Manager
Public Class Methods
start()
click to toggle source
# File lib/rt_sphinx/manager.rb, line 5 def self.start stop puts `searchd --config ./sphinx.conf` end
stop()
click to toggle source
# File lib/rt_sphinx/manager.rb, line 10 def self.stop `pid=$(lsof -i :9327 -t); if [ $pid ] ; then kill -TERM $pid || kill -KILL $pid; fi;` sleep(1) end