lib/sunspot/solr/server.rb in sunspot_solr-2.2.1 vs lib/sunspot/solr/server.rb in sunspot_solr-2.2.2
- old
+ new
@@ -111,10 +111,10 @@
def stop
if File.exist?(pid_path)
pid = IO.read(pid_path).to_i
begin
Process.kill('TERM', pid)
- exec_in_solr_executable_directory(['solr', 'stop', '-p', "#{port}"]) if port
+ exec_in_solr_executable_directory(['./solr', 'stop', '-p', "#{port}"]) if port
rescue Errno::ESRCH
raise NotRunningError, "Process with PID #{pid} is no longer running"
ensure
FileUtils.rm(pid_path)
end