File: //etc/systemd/system/gpuq-api.service
[Unit]
Description=GPUQ FastAPI Service
After=network.target redis-server.service
[Service]
Type=simple
User=root
WorkingDirectory=/home/kiwerkzeuge.de/private/gpuq-runtime
EnvironmentFile=/home/kiwerkzeuge.de/private/gpuq-runtime/secrets/management.env
Environment=GPUQ_REDIS_URL=redis://127.0.0.1:6379/5
Environment=GPUQ_DB_PATH=/home/kiwerkzeuge.de/private/gpuq-runtime/data/gpuq.sqlite3
Environment=GPUQ_RETENTION_DAYS=30
ExecStart=/home/kiwerkzeuge.de/private/gpuq-runtime/.venv/bin/python -m uvicorn app.main:app --host 127.0.0.1 --port 8020
Restart=on-failure
RestartSec=3
[Install]
WantedBy=multi-user.target