Some checks failed
Systemd Sync / sync-systemd (push) Has been cancelled
- Move EnvironmentFile=/etc/aitbc/.env from 10-central-env.conf drop-in files directly into main service files for blockchain-node, blockchain-p2p, blockchain-rpc, blockchain-sync, coordinator-api, exchange-api, explorer, learning, marketplace, modality-optimization, multimodal, openclaw, and wallet services - Delete all 10-central-env.conf drop-in configuration files - Delete
44 lines
941 B
Desktop File
44 lines
941 B
Desktop File
[Unit]
|
|
Description=AITBC Production Blockchain Node
|
|
After=network.target postgresql.service redis.service
|
|
Wants=postgresql.service redis.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=root
|
|
Group=root
|
|
WorkingDirectory=/opt/aitbc
|
|
Environment=PATH=/usr/bin:/usr/local/bin:/usr/bin:/bin
|
|
Environment=NODE_ID=aitbc
|
|
Environment=PYTHONPATH=/opt/aitbc/apps/blockchain-node/src
|
|
EnvironmentFile=/etc/aitbc/production.env
|
|
Environment=AITBC_ENV=production
|
|
|
|
# Production execution
|
|
ExecStart=/opt/aitbc/venv/bin/python -m aitbc_chain.combined_main
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
KillMode=mixed
|
|
TimeoutStopSec=10
|
|
|
|
# Production reliability
|
|
Restart=always
|
|
RestartSec=5
|
|
|
|
# Production logging
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
SyslogIdentifier=aitbc-blockchain-production
|
|
|
|
# Production security
|
|
NoNewPrivileges=true
|
|
ProtectHome=true
|
|
|
|
# Production performance
|
|
LimitNOFILE=65536
|
|
LimitNPROC=4096
|
|
MemoryMax=2G
|
|
CPUQuota=50%
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|