api-server/rag-worker/zhixi-worker.service
WangDL 744f2118a8
Some checks failed
Deploy API Server / build-and-deploy (push) Failing after 7s
fix: User=ubuntu in service file, simplify CI deploy step
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-20 16:51:43 +08:00

18 lines
331 B
Desktop File

[Unit]
Description=ZhiXi RAG Worker
After=network.target
[Service]
Type=simple
User=ubuntu
WorkingDirectory=/opt/zhixi/backend/rag-worker
Environment="PYTHONUNBUFFERED=1"
EnvironmentFile=/opt/zhixi/backend/rag-worker/.env
ExecStart=/usr/bin/python3.11 -u main.py
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target