bin/rapnd in rapnd-0.1.6 vs bin/rapnd in rapnd-0.1.7

- old
+ new

@@ -68,10 +68,12 @@ end Rapnd::Daemon.new(options).run! when 'stop' unless options[:foreground] - file = Daemons::PidFile.find_files("#{options[:dir]}/tmp", options[:queue]).first - pid = File.open(file) {|h| h.read}.to_i - `kill -9 #{pid}` + files = Daemons::PidFile.find_files("#{options[:dir]}/tmp", options[:queue]) + files.each do |file| + pid = File.open(file) {|h| h.read}.to_i + `kill -9 #{pid}` + end end end \ No newline at end of file