rt_sphinx 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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