Files
xiaoxia-saas/deploy/gpu_worker/xiaoxia-gpu-worker.service
T
xiaoxia 09d33d1cd8 fix(1978): fix xiaoxia-gpu-worker.service bad unit file & log path permissions
- User=%i -> User=ying (%%i is template-only specifier, not valid here)
- After=musetalk.service -> After=musetalk-worker.service (match actual service name)
- Log path from /tmp/ to $HOME/ to avoid permission issues for ying user
2026-09-20 13:18:07 +08:00

22 lines
681 B
Desktop File

[Unit]
Description=MuseTalk GPU Worker (xiaoxia-saas 反向轮询)
After=network.target musetalk-worker.service
# 本地 MuseTalk 服务(musetalk-worker.service)启动后再启动本 Worker
[Service]
Type=simple
User=ying
WorkingDirectory=/opt/xiaoxia-gpu-worker
# 读取环境变量(API 地址、Token、轮询间隔等)
EnvironmentFile=/opt/xiaoxia-gpu-worker/.env
ExecStart=/opt/xiaoxia-gpu-worker/venv/bin/python /opt/xiaoxia-gpu-worker/gpu_worker.py
Restart=always
RestartSec=10
# 日志走 journal,用 journalctl -u xiaoxia-gpu-worker -f 查看
StandardOutput=journal
StandardError=journal
SyslogIdentifier=xiaoxia-gpu-worker
[Install]
WantedBy=multi-user.target