Files
aitbc/systemd/aitbc-follower-node.service
aitbc d32ca2bcbf
Some checks failed
Systemd Sync / sync-systemd (push) Has been cancelled
feat: complete service rename and add missing files
Service Management:
- Renamed aitbc-production-monitor.service → aitbc-monitor.service
- Added aitbc-monitor.service to git for deployment consistency
- Ensures service configuration is version controlled

New Services:
- Added services/blockchain_follower.py for port 8007 follower node
- Added systemd/aitbc-follower-node.service for follower node management
- Complete blockchain node infrastructure

Deployment:
- Both nodes now have consistent service configuration
- All services operational and verified
- Git integration ensures future deployments work correctly
2026-04-02 17:40:44 +02:00

30 lines
891 B
Desktop File

[Unit]
Description=AITBC Blockchain Follower Node (Port 8007)
After=network.target aitbc-blockchain-node.service
Wants=aitbc-blockchain-node.service
[Service]
Type=simple
User=root
Group=root
Environment=NODE_ENV=production
Environment=NODE_ID=follower-node-8007
Environment=PYTHONPATH=/opt/aitbc/apps/blockchain-node/src:/opt/aitbc/services
Environment=BLOCKCHAIN_DATA_DIR=/var/lib/aitbc/data/follower
Environment=BLOCKCHAIN_CONFIG_DIR=/etc/aitbc
Environment=BLOCKCHAIN_LOG_DIR=/var/log/aitbc/production
Environment=BLOCKCHAIN_PORT=8007
Environment=BLOCKCHAIN_ROLE=follower
Environment=BLOCKCHAIN_GENESIS_NODE=http://localhost:8006
ExecStart=/opt/aitbc/venv/bin/python /opt/aitbc/services/blockchain_simple.py
ExecReload=/bin/kill -HUP $MAINPID
KillMode=mixed
TimeoutStopSec=30
Restart=always
RestartSec=5
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=multi-user.target