23 lines
501 B
Desktop File
23 lines
501 B
Desktop File
[Unit]
|
|
Description=My roda template
|
|
After=network.target
|
|
|
|
[Service]
|
|
User=myapp
|
|
Group=myapp
|
|
WorkingDirectory=/opt/myapp
|
|
Environment=RACK_ENV=production
|
|
|
|
ExecStart=/opt/myapp/bin/puma
|
|
TimeoutStopSec=300
|
|
KillMode=mixed
|
|
Restart=on-failure
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|
|
# Can copy this unit file into /etc/systemd/system/
|
|
# then edit for your installation details (user, group, directory, exec, app name)
|
|
# run "sudo systemctl daemon-reload",
|
|
# then "sudo systemctl enable --now -q myapp.service"
|