Skip to content

Instantly share code, notes, and snippets.

@jamescarr
Created November 14, 2012 16:43
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 jamescarr/b23e5c2469400d1ca9a4 to your computer and use it in GitHub Desktop.
Save jamescarr/b23e5c2469400d1ca9a4 to your computer and use it in GitHub Desktop.
start on startup
stop on shutdown
script
# We found $HOME is needed. Without it, we ran into problems
export HOME="/home/foo"
cd $HOME/foo-api/current
exec sudo -u foo sh -c "/usr/local/bin/bundle exec /usr/local/bin/ruby token_service.rb"
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment