Files
aitbc/systemd/aitbc-blockchain-rpc.service
aitbc e01fb36db8
All checks were successful
Systemd Sync / sync-systemd (push) Successful in 17s
fix: change blockchain sync default hosts from 10.1.223.40 to localhost and disable block production in RPC service
Update blockchain-sync-wrapper.py to use 127.0.0.1 as default for SYNC_LEADER_HOST, SYNC_SOURCE_HOST, and SYNC_IMPORT_HOST instead of hardcoded 10.1.223.40. Replace UnsetEnvironment directive with explicit enable_block_production=false in blockchain-rpc.service to ensure block production is disabled.
2026-04-28 08:38:43 +02:00

26 lines
675 B
Desktop File

[Unit]
Description=AITBC Blockchain RPC API
After=network.target aitbc-blockchain-node.service
[Service]
Type=simple
User=root
Group=root
WorkingDirectory=/opt/aitbc
Environment=PATH=/usr/bin:/usr/local/bin:/usr/bin:/bin
ExecStartPre=/opt/aitbc/scripts/utils/load-keystore-secrets.sh
EnvironmentFile=/run/aitbc/secrets/.env
EnvironmentFile=/etc/aitbc/.env
EnvironmentFile=/etc/aitbc/node.env
Environment=enable_block_production=false
ExecStart=/opt/aitbc/venv/bin/python /opt/aitbc/scripts/wrappers/aitbc-blockchain-rpc-wrapper.py
Restart=always
RestartSec=5
StandardOutput=journal
StandardError=journal
SyslogIdentifier=BlockchainRPC
[Install]
WantedBy=multi-user.target