Skip to content

Instantly share code, notes, and snippets.

@tunglam14
Last active December 22, 2015 14:29
Show Gist options
  • Save tunglam14/6486008 to your computer and use it in GitHub Desktop.
Save tunglam14/6486008 to your computer and use it in GitHub Desktop.
start on runlevel [2345]
stop on runlevel [!2345]
chdir /usr/local/app_name
setuid ubuntu
setgid ubuntu
post-start script
exec bundle exec unicorn_rails -c config/unicorn.rb -D -E production
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment