File: //etc/systemd/system/gpuq-worker.service
[Unit]
Description=GPUQ RQ Worker
After=network.target redis-server.service gpuq-api.service
[Service]
Type=simple
User=root
WorkingDirectory=/home/kiwerkzeuge.de/private/gpuq-runtime
Environment=GPUQ_REDIS_URL=redis://127.0.0.1:6379/5
Environment=GPUQ_DB_PATH=/home/kiwerkzeuge.de/private/gpuq-runtime/data/gpuq.sqlite3
ExecStart=/home/kiwerkzeuge.de/private/gpuq-runtime/.venv/bin/python -m app.worker
Restart=on-failure
RestartSec=3
[Install]
WantedBy=multi-user.target