Skip to content

Instantly share code, notes, and snippets.

@lajunta
Created October 23, 2013 14:27
Show Gist options
  • Save lajunta/7119859 to your computer and use it in GitHub Desktop.
Save lajunta/7119859 to your computer and use it in GitHub Desktop.
# Ubuntu upstart file at /etc/init/penroll.conf
start on runlevel [2345] or net-device-up IFACE!=lo
stop on runlevel [06]
env PATH=/bin:/sbin:/usr/sbin:/usr/bin:/usr/local/rvm/bin:/usr/local/rvm/gems/ruby-1.9.3-p392/bin
chdir "/data/sites/kpy"
exec puma -e production -p 8080
respawn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment