Skip to content
Browse files

Remove passenger support for app restarting: it's unicorn-specific now.

  • Loading branch information...
1 parent d00b870 commit 1663443150913956616998859dff3b0db3363c74 @benhoskings committed May 24, 2012
Showing with 6 additions and 5 deletions.
  1. +6 −5 deploy.rb
View
11 deploy.rb
@@ -20,7 +20,7 @@
# checks trigger a source load when called.
'on deploy'.with(ref_info[:old_id], ref_info[:new_id], ref_info[:branch], env),
- 'app flagged for restart.task',
+ 'unicorn flagged for restart.task',
'maintenance page down',
'after deploy'.with(ref_info[:old_id], ref_info[:new_id], ref_info[:branch], env)
]
@@ -93,12 +93,13 @@
}
end
-dep 'app flagged for restart.task' do
+dep 'unicorn flagged for restart.task' do
run {
- if File.exists? 'tmp/pids/unicorn.pid'
- shell "kill -USR2 #{'tmp/pids/unicorn.pid'.p.read}"
+ if !File.exists?('tmp/pids/unicorn.pid')
+ log "There are no unicorns running: not attempting a restart."
+ true
else
- shell "mkdir -p tmp && touch tmp/restart.txt"
+ shell "kill -USR2 #{'tmp/pids/unicorn.pid'.p.read}"
end
}
end

0 comments on commit 1663443

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