Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Daemon generator fix for when fetcher isn't started courtesy jtanium

  • Loading branch information...
commit 9c0eb25293ef493e110de98735f9eefc3b03c3ff 1 parent c79515c
@look look authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 generators/fetcher_daemon/templates/daemon.rb
View
7 generators/fetcher_daemon/templates/daemon.rb
@@ -63,7 +63,12 @@ def self.stop(daemon)
end
pid = PidFile.recall(daemon)
FileUtils.rm(daemon.pid_fn)
- pid && Process.kill("TERM", pid)
+
+ begin
+ pid && Process.kill("TERM", pid)
+ rescue Errno::ESRCH => e
+ puts "warning: process #{pid} not found"
+ end
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.