Files
aitbc/systemd
aitbc 5994775957
All checks were successful
Cross-Node Transaction Testing / transaction-test (push) Successful in 3s
Deploy to Testnet / deploy-testnet (push) Successful in 1m5s
Multi-Node Stress Testing / stress-test (push) Successful in 12s
Node Failover Simulation / failover-test (push) Successful in 17s
Systemd Sync / sync-systemd (push) Successful in 20s
fix: prevent coordinator-api port conflicts after reboot
Root cause: systemd service lacked proper process management
- No PIDFile for process tracking
- Restart=always caused restart loops on any exit
- No ExecStop for graceful shutdown
- No KillMode (default control-group leaves stale processes)
- Short RestartSec (5s) caused rapid restart attempts

Fix applied to systemd/aitbc-coordinator-api.service:
- Add ExecStop=/bin/kill -TERM $MAINPID for graceful shutdown
- Add KillMode=process to kill only main process
- Add KillSignal=SIGTERM for proper signal handling
- Add TimeoutStopSec=30 for graceful shutdown timeout
- Change Restart=always to Restart=on-failure
- Increase RestartSec from 5 to 10 seconds
- Add PIDFile=/run/aitbc-coordinator-api.pid for process tracking

Synced to all nodes (aitbc, aitbc1, gitea-runner) via link-systemd.sh
2026-05-04 08:31:37 +02:00
..