✅ Complete Path Cleanup - Updated all services in /opt/aitbc/systemd/ to use /opt/aitbc/services - Fixed blockchain node service ExecStart path - Updated PYTHONPATH for all services - Eliminated all /opt/aitbc/production/services references ✅ Service Architecture Cleanup - Single blockchain node service with correct path - GPU marketplace service as single marketplace - No duplicate marketplace services - Clean service configuration ✅ Production Structure - All services use /opt/aitbc/services - No more box in a box references - FHS compliant structure maintained - Single, manageable service architecture 🚀 Complete elimination of old production paths!
46 lines
965 B
Desktop File
46 lines
965 B
Desktop File
[Unit]
|
|
Description=AITBC Real Mining Blockchain Service
|
|
After=network.target
|
|
|
|
[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/services
|
|
EnvironmentFile=/opt/aitbc/production/.env
|
|
|
|
# Real mining execution
|
|
ExecStart=/opt/aitbc/venv/bin/python /opt/aitbc/services/mining_blockchain.py
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
KillMode=mixed
|
|
TimeoutStopSec=10
|
|
|
|
# Mining reliability
|
|
Restart=always
|
|
RestartSec=5
|
|
StartLimitBurst=5
|
|
StartLimitIntervalSec=60
|
|
|
|
# Mining logging
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
SyslogIdentifier=aitbc-mining-blockchain
|
|
|
|
# Mining security
|
|
NoNewPrivileges=true
|
|
ProtectSystem=strict
|
|
ProtectHome=true
|
|
ReadWritePaths=/var/lib/aitbc/data/blockchain /var/log/aitbc/production/blockchain
|
|
|
|
# Mining performance
|
|
LimitNOFILE=65536
|
|
LimitNPROC=4096
|
|
MemoryMax=4G
|
|
CPUQuota=80%
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|