Skip to content

Instantly share code, notes, and snippets.

@assaf
Created July 27, 2010 05:13
Show Gist options
  • Save assaf/491773 to your computer and use it in GitHub Desktop.
Save assaf/491773 to your computer and use it in GitHub Desktop.
start on runlevel [2345]
stop on runlevel [06]
chdir /var/app/current
exec run_bundle unicorn -c config/unicorn.rb -E production
post-start script
sleep 5
rm -f /var/app/shared/system/maintenance.html
end script
post-stop exec ln -s /var/app/shared/system/_maintenance.html /var/app/shared/system/maintenance.html
kill timeout 5
respawn
respawn limit 10 30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment