Added systemd
This commit is contained in:
parent
e6e4949049
commit
1f28eaa381
2 changed files with 24 additions and 2 deletions
17
myapp.service
Normal file
17
myapp.service
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
[Unit]
|
||||
Description=My roda template
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
User=myapp
|
||||
Group=myapp
|
||||
WorkingDirectory=/opt/myapp
|
||||
Environment=RACK_ENV=production
|
||||
|
||||
ExecStart=/usr/bin/puma
|
||||
TimeoutStopSec=300
|
||||
KillMode=mixed
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue