- Bump minimum Python version from 3.11 to 3.13 across all apps - Add Python 3.11-3.13 test matrix to CLI workflow - Document Python 3.11+ requirement in .env.example - Fix Starlette Broadcast removal with in-process fallback implementation - Add _InProcessBroadcast class for tests when Starlette Broadcast is unavailable - Refactor API key validators to read live settings instead of cached values - Update database models with explicit
26 lines
722 B
Desktop File
26 lines
722 B
Desktop File
[Unit]
|
|
Description=AITBC Blockchain Node Service (Python 3.11+)
|
|
After=network.target
|
|
Wants=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=root
|
|
Group=root
|
|
WorkingDirectory=/opt/blockchain-node
|
|
Environment=PATH=/opt/blockchain-node/.venv/bin
|
|
Environment=PYTHONPATH=/opt/blockchain-node
|
|
Environment=RUST_LOG=info
|
|
# Python version validation
|
|
ExecStartPre=/bin/bash -c "python3.11 --version || (echo 'Python 3.11+ required' && exit 1)"
|
|
ExecStart=/opt/blockchain-node/.venv/bin/python -m node.main --datadir /opt/blockchain-node/data --rpc-bind 0.0.0.0:8545
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
Restart=always
|
|
RestartSec=5
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
SyslogIdentifier=aitbc-node
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|