pounce/systemd/pounce-backend.service
Yves Gugger 6e9c5a1394
Some checks failed
CI / Frontend Lint & Type Check (push) Has been cancelled
CI / Frontend Build (push) Has been cancelled
CI / Backend Lint (push) Has been cancelled
CI / Backend Tests (push) Has been cancelled
CI / Docker Build (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
Deploy / Build & Push Images (push) Has been cancelled
Deploy / Deploy to Server (push) Has been cancelled
Deploy / Notify (push) Has been cancelled
Add systemd auto-start services + realistic feature updates
2025-12-17 09:36:59 +01:00

25 lines
620 B
Desktop File

[Unit]
Description=Pounce Backend API (FastAPI/Uvicorn)
After=network.target postgresql.service
Wants=postgresql.service
[Service]
Type=simple
User=user
Group=user
WorkingDirectory=/home/user/pounce/backend
Environment="PATH=/home/user/pounce/backend/venv/bin:/usr/local/bin:/usr/bin:/bin"
ExecStart=/home/user/pounce/backend/venv/bin/uvicorn app.main:app --host 0.0.0.0 --port 8000
Restart=always
RestartSec=5
StandardOutput=append:/home/user/pounce/backend/backend.log
StandardError=append:/home/user/pounce/backend/backend.log
# Hardening
NoNewPrivileges=true
PrivateTmp=true
[Install]
WantedBy=multi-user.target