update service
This commit is contained in:
17
scripts/cbpred-prediction.service
Normal file
17
scripts/cbpred-prediction.service
Normal file
@@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=cbpred 8H prediction scheduler
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=ctyun
|
||||
Group=ctyun
|
||||
WorkingDirectory=/data/quant/cbpred
|
||||
EnvironmentFile=/etc/cbpred/prediction-service.env
|
||||
ExecStart=/data/quant/cbpred/.venv/bin/python -m cbpred.prediction_service --config /etc/cbpred/prediction-service.yml
|
||||
Restart=on-failure
|
||||
RestartSec=30
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user