I cannot find any good example of a unicorn upstart task that works
properly for the following:

* Upstart will restart if unicorn dies
* Can send USR2 signal to unicorn to do a no downtime deploys
* Able to stop upstart job, even after a deploy

I have tried the following:

  expect fork
  respawn
  setuid www-data
  chdir /var/www/app/current
  exec bundle exec unicorn_rails -E production -c
/var/www/app/current/config/unicorn.rb

I also tried using the following in various combinations:
  normal exit 0 QUIT USR2
  post-stop exec kill `cat /var/www/app/current/tmp/pids/unicorn.pid`

Can anyone help?

Thanks

Owen
_______________________________________________
Unicorn mailing list - [email protected]
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying

Reply via email to