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
- Update all systemd units to use blockchain.env instead of .env - This standardizes configuration structure across nodes
40 lines
820 B
Desktop File
40 lines
820 B
Desktop File
[Unit]
|
|
Description=AITBC Agent Coordinator Service
|
|
After=network.target redis.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=root
|
|
Group=root
|
|
WorkingDirectory=/opt/aitbc
|
|
Environment=PATH=/usr/bin:/usr/local/bin:/usr/bin:/bin
|
|
EnvironmentFile=/etc/aitbc/blockchain.env
|
|
EnvironmentFile=/etc/aitbc/node.env
|
|
|
|
# Agent coordinator execution
|
|
ExecStart=/opt/aitbc/venv/bin/python /opt/aitbc/scripts/wrappers/aitbc-agent-coordinator-wrapper.py
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
KillMode=mixed
|
|
TimeoutStopSec=10
|
|
|
|
# Production reliability
|
|
Restart=always
|
|
RestartSec=5
|
|
|
|
# Production logging
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
SyslogIdentifier=aitbc-agent-coordinator
|
|
|
|
# Production security
|
|
NoNewPrivileges=true
|
|
|
|
# Production performance
|
|
LimitNOFILE=65536
|
|
LimitNPROC=4096
|
|
MemoryMax=2G
|
|
CPUQuota=50%
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|