Skip to content

Instantly share code, notes, and snippets.

@hugopeixoto
Created September 24, 2014 14:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hugopeixoto/1059702174aa46c853cb to your computer and use it in GitHub Desktop.
Save hugopeixoto/1059702174aa46c853cb to your computer and use it in GitHub Desktop.
upstart example
# daemon-name - registration service
#
description "registration service"
start on (local-filesystems and runlevel [2345])
stop on runlevel [06]
setuid v11registration-runner
setgid v11registration-runner
chdir /home/app-runner/app/current
exec bundle exec unicorn_rails -E production -c config/unicorn.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment