Files
aitbc/systemd/aitbc-exchange-api.service
aitbc e24513b576
Some checks failed
Cross-Node Transaction Testing / transaction-test (push) Successful in 4s
Deploy to Testnet / deploy-testnet (push) Successful in 1m16s
Multi-Node Stress Testing / stress-test (push) Successful in 2s
Node Failover Simulation / failover-test (push) Failing after 3s
Systemd Sync / sync-systemd (push) Successful in 19s
Migrate from legacy .env to blockchain.env
- Update all systemd units to use blockchain.env instead of .env
- This standardizes configuration structure across nodes
2026-05-09 19:34:14 +02:00

27 lines
604 B
Desktop File

[Unit]
Description=AITBC Exchange API Service
After=network.target
Wants=network.target
[Service]
Type=simple
User=root
Group=root
WorkingDirectory=/opt/aitbc/apps/exchange
EnvironmentFile=/etc/aitbc/blockchain.env
EnvironmentFile=/etc/aitbc/node.env
Environment="PYTHONPATH=/opt/aitbc"
ExecStart=/opt/aitbc/venv/bin/python simple_exchange_api.py --port 8001
ExecReload=/bin/kill -HUP $MAINPID
Restart=always
RestartSec=5
StandardOutput=journal
StandardError=journal
SyslogIdentifier=aitbc-exchange-api
# Allow database writes for SQLite WAL mode
ProtectSystem=no
[Install]
WantedBy=multi-user.target