# Location: cookbooks/unicorn/recipes/rails-application.rb

# As with the deploy.rb for capistrano, runit expects 2 to tell it to send 
# the USR2 signal to the process. Configure the runit service to use that
# for the restart comment. Also, chef-client runs every 30 minutes and 
# will run the restart command every run unless you tell it not to.

runit_service 'rails-application' do
  restart_command '2'
  run_restart false
end