Class: Blazing::Recipe::UnicornRestart

Inherits:
Blazing::Recipe
  • Object
show all
Defined in:
lib/appboost/blazing/unicorn_restart.rb

Instance Method Summary collapse

Instance Method Details

#run(target_options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/appboost/blazing/unicorn_restart.rb', line 5

def run(target_options = {})
  super target_options

  info "restarting unicorn"
  system "#{sudo} kill -USR2 #{unicorn_pid}"
end