Created
April 17, 2015 08:14
-
-
Save markjfletcher/7df979561b06eead87ba to your computer and use it in GitHub Desktop.
Rough systemd service for running puma
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
[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