[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=journal StandardError=journal # Hardening NoNewPrivileges=true PrivateTmp=true [Install] WantedBy=multi-user.target