Skip to content
Browse files

don't try to kill the spawner pid if no spawner process exists (close…

…s #10093)

git-svn-id: http://svn.rubyonrails.org/rails/tools/capistrano@8917 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 3cbc349 commit 74b0c3be6da1a648c640ee20e151d53178e17ff4 @jamis jamis committed Feb 21, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/capistrano/recipes/deploy.rb
View
2 lib/capistrano/recipes/deploy.rb
@@ -426,7 +426,7 @@ def with_env(name, value)
as = fetch(:runner, "app")
via = fetch(:run_method, :sudo)
- invoke_command "#{current_path}/script/process/reaper -a kill -r dispatch.spawner.pid", :via => via, :as => as
+ invoke_command "if [ -f #{current_path}/tmp/pids/dispatch.spawner.pid ]; then #{current_path}/script/process/reaper -a kill -r dispatch.spawner.pid; fi", :via => via, :as => as
invoke_command "#{current_path}/script/process/reaper -a kill", :via => via, :as => as
end

0 comments on commit 74b0c3b

Please sign in to comment.
Something went wrong with that request. Please try again.