update service

This commit is contained in:
2026-08-24 20:17:24 +08:00
parent 1f72dfdc1e
commit baddd7763d
9 changed files with 653 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
[Unit]
Description=cbpred 8H prediction scheduler (user)
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
WorkingDirectory=/data/quant/cbpred
EnvironmentFile=%h/.config/cbpred/prediction-service.env
ExecStart=/data/quant/cbpred/.venv/bin/python -m cbpred.prediction_service --config %h/.config/cbpred/prediction-service.yml
Restart=on-failure
RestartSec=30
[Install]
WantedBy=default.target