Created
September 4, 2014 03:59
-
-
Save WA9ACE/f61b27a0617fe68ff23a to your computer and use it in GitHub Desktop.
/etc/init/uberbot.conf Ruby Upstart script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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