update service
This commit is contained in:
15
scripts/cbpred-prediction.user.service
Normal file
15
scripts/cbpred-prediction.user.service
Normal 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
|
||||
Reference in New Issue
Block a user