feat: add aitbc-multimodal-gpu.service to setup script

GPU Service Addition - Complete:
 GPU SERVICE ADDED: Added aitbc-multimodal-gpu.service to setup process
- setup.sh: Added aitbc-multimodal-gpu.service to services installation list
- setup.sh: Updated start_services to include GPU service
- setup.sh: Updated setup_autostart to enable GPU service
- Reason: Include latest GPU service in standard setup

 COMPLETE SERVICE LIST:
🔧 aitbc-wallet.service: Wallet management service
🔧 aitbc-coordinator-api.service: Coordinator API service
🔧 aitbc-exchange-api.service: Exchange API service
🔧 aitbc-blockchain-node.service: Blockchain node service
🔧 aitbc-blockchain-rpc.service: Blockchain RPC service
🔧 aitbc-multimodal-gpu.service: GPU multimodal service (NEW)

 GPU SERVICE FEATURES:
🚀 Port 8011: Multimodal GPU processing service
🎯 CUDA Integration: Proper GPU access controls
📊 Resource Limits: 4GB RAM, 300% CPU quota
🔒 Security: Comprehensive systemd security settings
👤 Standard User: Runs as 'aitbc' user
📁 Standard Paths: Uses /opt/aitbc/ directory structure

 SETUP PROCESS UPDATED:
📦 install_services(): Added GPU service to installation array
🚀 start_services(): Added GPU service to systemctl start command
🔄 setup_autostart(): Added GPU service to systemctl enable command
📋 Status Check: Added GPU service to systemctl is-active check

 SERVICE STARTUP SEQUENCE:
1. aitbc-wallet.service
2. aitbc-coordinator-api.service
3. aitbc-exchange-api.service
4. aitbc-blockchain-node.service
5. aitbc-blockchain-rpc.service
6. aitbc-multimodal-gpu.service (NEW)

 DEPENDENCY CONSIDERATIONS:
🔗 Coordinator API: GPU service depends on coordinator-api.service
📋 After Clause: GPU service starts after coordinator API
 GPU Access: Proper CUDA device access configured
🎯 Integration: Full integration with AITBC ecosystem

 ENHANCED CAPABILITIES:
 GPU Processing: Multimodal AI processing capabilities
 Advanced Features: Text, image, audio, video processing
 Resource Management: Proper resource limits and controls
 Monitoring: Full systemd integration and monitoring
 Auto-Start: Enabled for boot-time startup

RESULT: Successfully added aitbc-multimodal-gpu.service to setup script, providing complete GPU processing capabilities as part of the standard AITBC installation with proper service management and auto-start configuration.
This commit is contained in:
2026-03-30 17:46:09 +02:00
parent cf3536715b
commit e14ba03a90

View File

@@ -164,6 +164,7 @@ install_services() {
"aitbc-exchange-api.service" "aitbc-exchange-api.service"
"aitbc-blockchain-node.service" "aitbc-blockchain-node.service"
"aitbc-blockchain-rpc.service" "aitbc-blockchain-rpc.service"
"aitbc-multimodal-gpu.service"
) )
for service in "${services[@]}"; do for service in "${services[@]}"; do
@@ -239,12 +240,12 @@ start_services() {
log "Starting AITBC services..." log "Starting AITBC services..."
# Try systemd first # Try systemd first
if systemctl start aitbc-wallet aitbc-coordinator-api aitbc-exchange-api aitbc-blockchain-node aitbc-blockchain-rpc 2>/dev/null; then if systemctl start aitbc-wallet aitbc-coordinator-api aitbc-exchange-api aitbc-blockchain-node aitbc-blockchain-rpc aitbc-multimodal-gpu 2>/dev/null; then
log "Services started via systemd" log "Services started via systemd"
sleep 5 sleep 5
# Check if services are running # Check if services are running
if systemctl is-active --quiet aitbc-wallet aitbc-coordinator-api aitbc-exchange-api aitbc-blockchain-node aitbc-blockchain-rpc; then if systemctl is-active --quiet aitbc-wallet aitbc-coordinator-api aitbc-exchange-api aitbc-blockchain-node aitbc-blockchain-rpc aitbc-multimodal-gpu; then
success "Services started successfully via systemd" success "Services started successfully via systemd"
else else
warning "Some systemd services failed, falling back to manual startup" warning "Some systemd services failed, falling back to manual startup"
@@ -272,6 +273,7 @@ setup_autostart() {
systemctl enable aitbc-exchange-api.service systemctl enable aitbc-exchange-api.service
systemctl enable aitbc-blockchain-node.service systemctl enable aitbc-blockchain-node.service
systemctl enable aitbc-blockchain-rpc.service systemctl enable aitbc-blockchain-rpc.service
systemctl enable aitbc-multimodal-gpu.service
success "Auto-start configured" success "Auto-start configured"
} }