Logo
Explore Help
Sign In
wangdl/api-server
2
0
Fork 0
You've already forked api-server
Code Issues 45 Pull Requests Actions Packages Projects Releases Wiki Activity
api-server/rag-worker/zhixi-worker.service

19 lines
393 B
SYSTEMD
Raw Normal View History

fix CI: move Python deps + reranker test to systemd ExecStartPre Runner container lacks Python 3.11, so pip install and self-test now run as ExecStartPre in zhixi-worker.service on the host. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-20 16:25:52 +08:00
[Unit]
Description=ZhiXi RAG Worker
After=network.target
[Service]
Type=simple
User=root
WorkingDirectory=/opt/zhixi/backend/rag-worker
Environment="PYTHONUNBUFFERED=1"
EnvironmentFile=/opt/zhixi/backend/rag-worker/.env
fix systemd: use startup.sh instead of inline ExecStartPre Multi-line Python in ExecStartPre is invalid systemd syntax. Extract pip install + reranker self-test into startup.sh. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-20 16:32:22 +08:00
ExecStartPre=/bin/bash /opt/zhixi/backend/rag-worker/startup.sh
fix CI: move Python deps + reranker test to systemd ExecStartPre Runner container lacks Python 3.11, so pip install and self-test now run as ExecStartPre in zhixi-worker.service on the host. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-20 16:25:52 +08:00
ExecStart=/usr/bin/python3.11 -u main.py
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 22ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API