budgit/docs/budgit.service
juancwu 6e00b7387e
All checks were successful
Deploy / build-and-deploy (push) Successful in 1m0s
devops: deployment setup and docs
2026-02-09 20:53:25 +00:00

27 lines
519 B
Desktop File

[Unit]
Description=Budgit web application
After=network.target postgresql.service
Requires=postgresql.service
[Service]
Type=simple
User=budgit
Group=budgit
WorkingDirectory=/opt/budgit
ExecStart=/opt/budgit/budgit
EnvironmentFile=/opt/budgit/.env
Restart=on-failure
RestartSec=5
# Graceful shutdown (matches the 10s timeout in main.go)
TimeoutStopSec=15
# Security hardening
NoNewPrivileges=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/opt/budgit
PrivateTmp=true
[Install]
WantedBy=multi-user.target