Files
aitbc/systemd/aitbc-trading.service
aitbc 9ec1453c89
Some checks failed
Cross-Node Transaction Testing / transaction-test (push) Successful in 13s
Deploy to Testnet / deploy-testnet (push) Successful in 1m31s
Multi-Node Stress Testing / stress-test (push) Successful in 20s
Node Failover Simulation / failover-test (push) Failing after 9s
Systemd Sync / sync-systemd (push) Successful in 27s
Deploy to Testnet / notify-deployment (push) Successful in 9s
Fix new services to use shared venv and PYTHONPATH
2026-05-02 10:11:27 +02:00

20 lines
546 B
Desktop File

[Unit]
Description=AITBC Trading Service
After=network.target postgresql.service
[Service]
Type=simple
User=root
WorkingDirectory=/opt/aitbc/apps/trading-service
Environment="PATH=/opt/aitbc/venv/bin:/usr/local/bin:/usr/bin:/bin"
Environment="PYTHONPATH=/opt/aitbc/apps/trading-service/src:/opt/aitbc/packages/py/aitbc-core/src:$PYTHONPATH"
ExecStart=/opt/aitbc/venv/bin/python -m trading_service.main
Restart=always
RestartSec=10
StandardOutput=journal
StandardError=journal
SyslogIdentifier=aitbc-trading
[Install]
WantedBy=multi-user.target