Skip to content

Instantly share code, notes, and snippets.

@duderamos
Created February 12, 2017 22:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save duderamos/eda19027ec88bb05de421d8300e9ff75 to your computer and use it in GitHub Desktop.
Save duderamos/eda19027ec88bb05de421d8300e9ff75 to your computer and use it in GitHub Desktop.
[Unit]
Description=Puma Server
[Service]
Type=forking
User=netengine
WorkingDirectory=/var/www/puma/current
Environment=RAILS_ENV=staging
SyslogIdentifier=puma
PIDFile=/var/www/puma/current/tmp/pids/puma.pid
Restart=always
ExecStart=/bin/sh -c "/etc/rbenv/shims/bundle exec puma -C /var/www/puma/current/config/puma.rb"
ExecReload=/bin/sh -c "/etc/rbenv/shims/bundle exec pumactl -S /var/www/puma/current/tmp/puma.state stop"
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment