Skip to content

Instantly share code, notes, and snippets.

@markjfletcher
Created April 17, 2015 08:14
Show Gist options
  • Save markjfletcher/7df979561b06eead87ba to your computer and use it in GitHub Desktop.
Save markjfletcher/7df979561b06eead87ba to your computer and use it in GitHub Desktop.
Rough systemd service for running puma
[Unit]
Description=Puma application server
After=syslog.target network.target remote-fs.target nss-lookup.target
[Service]
User=rails
WorkingDirectory=/vagrant/testApp
PIDFile=/vagrant/testApp/shared/pids/puma.pid
ExecStart=/bin/bash -lc 'bundle exec puma -C config/puma.rb'
Restart=always
Type=forking
StandardInput=null
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=%n
KillMode=process
TimeoutStopSec=5
TimeoutStartSec=10
RestartSec=15
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment