rt_sphinx 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rt_sphinx/manager.rb +3 -3
- data/rt_sphinx.gemspec +1 -1
- metadata +1 -1
data/lib/rt_sphinx/manager.rb
CHANGED
@@ -3,11 +3,11 @@
|
|
3
3
|
module RtSphinx
|
4
4
|
class Manager
|
5
5
|
def self.start
|
6
|
-
|
7
|
-
puts `searchd`
|
6
|
+
stop
|
7
|
+
puts `searchd --config ./sphinx.conf`
|
8
8
|
end
|
9
9
|
|
10
|
-
def self.
|
10
|
+
def self.stop
|
11
11
|
`pid=$(lsof -i :9327 -t); if [ $pid ] ; then kill -TERM $pid || kill -KILL $pid; fi;`
|
12
12
|
sleep(1)
|
13
13
|
end
|
data/rt_sphinx.gemspec
CHANGED