Skip to content

Instantly share code, notes, and snippets.

@j3ck
Created January 3, 2017 21:44
Show Gist options
  • Select an option

  • Save j3ck/22a4d102546a470bb8e7d245b29d9951 to your computer and use it in GitHub Desktop.

Select an option

Save j3ck/22a4d102546a470bb8e7d245b29d9951 to your computer and use it in GitHub Desktop.
description "Puma Background Worker"
start on runlevel [2345]
stop on runlevel [06]
respawn
respawn limit 3 30
setuid j3ck
setgid j3ck
script
exec /bin/bash «'EOT'
cd /home/j3ck/projects/lol
logger -t puma "Starting server puma."
/home/j3ck/.rvm/bin/rvm-shell 2.3.1@test -c "bundle exec puma -C config/puma.rb"
EOT
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment