Created
January 3, 2017 21:44
-
-
Save j3ck/22a4d102546a470bb8e7d245b29d9951 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 "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