Permalink
Browse files

Add a case to 'unicorn running' for when unicorns are running, but th…

…e count is wrong.
  • Loading branch information...
1 parent 44ba76f commit f41af4352e624aafb99ac993dbbf9c8f5262d1e8 @benhoskings committed Mar 30, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 unicorn.rb
View
@@ -40,6 +40,9 @@ def missing_paths
(running_count == expected_count).tap {|result|
if result
log_ok "This app has #{running_count} unicorn#{'s' unless running_count == 1} running (1 master + #{running_count - 1} workers)."
+ elsif running_count > 0
+ log_warn "This app has #{running_count} unicorn processes running, which doesn't match the config."
+ true
else
log "This app has no unicorns running."
end

0 comments on commit f41af43

Please sign in to comment.