Skip to content

Instantly share code, notes, and snippets.

@WA9ACE
Created September 4, 2014 03:59
Show Gist options
  • Save WA9ACE/f61b27a0617fe68ff23a to your computer and use it in GitHub Desktop.
Save WA9ACE/f61b27a0617fe68ff23a to your computer and use it in GitHub Desktop.
/etc/init/uberbot.conf Ruby Upstart script
description "Ruby App"
start on net-device-up IFACE=eth0
stop on shutdown
respawn
setuid user
setgid user
script
exec >/tmp/app.log 2>&1
exec bash -c 'cd /opt/apps/appname && /home/user/.rbenv/shims/bundle exec ruby app.rb'
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment