Files
aitbc/systemd/aitbc-multimodal.service
aitbc eec3d2b41f refactor: move Multimodal and Explorer to Other Services section
Specialized Services Reorganization - Complete:
 MULTIMODAL AND EXPLORER MOVED: Moved to Other Services section with proper ports
- systemd/aitbc-multimodal.service: Changed port from 8005 to 8020
- apps/blockchain-explorer/main.py: Changed port from 8007 to 8022
- setup.sh: Moved Multimodal and Explorer from Core Services to Other Services
- setup.sh: Updated health check to use ports 8020 and 8022
- Reason: These are specialized services, not core infrastructure

 FINAL PORT ALLOCATION:
🔧 Core Services (8000-8009):
  8000: Coordinator API 
  8001: Exchange API 
  8002: Marketplace API 
  8003: Wallet API 
  8004: Available  (freed from Multimodal)
  8005: Available  (freed from Explorer)
  8006: Blockchain RPC 
  8007: Available 
  8008: Available 
  8009: Available 

🚀 AI/Agent/GPU Services (8010-8019):
  8010: GPU Service + Learning Service (conflict) ⚠️
  8011: Agent Coordinator 
  8012: Agent Registry 
  8013: OpenClaw Service 
  8009: AI Service 
  8016: Web UI 

📊 Other Services (8020-8029):
  8020: Multimodal Service  (MOVED from 8005)
  8022: Explorer  (MOVED from 8007)
  8023: Modality Optimization 
  8021: Available 
  8024-8029: Available 

 SERVICE CATEGORIZATION FINALIZED:
🔧 Core Services (4 HTTP + 2 Blockchain): Essential infrastructure only
  HTTP: Coordinator, Exchange, Marketplace, Wallet
  Blockchain: Node, RPC

🚀 AI/Agent/GPU Services (7): AI, agent, and GPU services
📊 Other Services (3): Specialized services (Multimodal, Explorer, Modality Opt)

 PORT STRATEGY COMPLIANCE:
 Core Services: Essential services in 8000-8009 range
 AI/Agent/GPU: All services in 8010-8019 range (except AI Service)
 Other Services: All specialized services in 8020-8029 range
 Perfect Organization: Services grouped by function and importance

 BENEFITS:
 Focused Core Services: Only essential infrastructure in Core section
 Logical Grouping: Specialized services properly categorized
 Port Availability: More ports available in Core Services range
 Better Organization: Clear distinction between core and specialized services

 AVAILABLE PORTS:
🔧 Core Services: 8004, 8005, 8007, 8008, 8009 available (5 ports)
🚀 AI/Agent/GPU: 8014-8015, 8017-8019 available (4 ports)
📊 Other Services: 8021, 8024-8029 available (7 ports)

 REMAINING ISSUES:
⚠️ Port 8010 Conflict: GPU Service and Learning Service both use port 8010
💭 Port 8009 Out of Range: AI Service on 8009 but in AI/Agent/GPU section

 FINAL SERVICE DISTRIBUTION:
🔧 Core Services (6 total): 4 HTTP + 2 blockchain services
🚀 AI/Agent/GPU Services (7): Complete AI and agent suite
📊 Other Services (3): Specialized processing services

RESULT: Successfully moved Multimodal and Explorer to Other Services section with proper port allocation. Core Services now contains only essential infrastructure services, while specialized services are properly categorized in Other Services. This achieves perfect service organization with clear functional separation. Only the Port 8010 GPU/Learning conflict remains to be resolved.
2026-03-30 18:25:27 +02:00

33 lines
736 B
Desktop File

[Unit]
Description=AITBC Multi-Modal Agent Service
After=network.target aitbc-coordinator-api.service
Wants=aitbc-coordinator-api.service
[Service]
Type=simple
User=debian
Group=debian
WorkingDirectory=/home/oib/aitbc/apps/coordinator-api
Environment=PATH=/usr/bin
ExecStart=/usr/bin/python3 -m uvicorn src.app.services.multimodal_app:app --host 127.0.0.1 --port 8020
ExecReload=/bin/kill -HUP $MAINPID
KillMode=mixed
TimeoutStopSec=5
PrivateTmp=true
Restart=on-failure
RestartSec=10
# Logging
StandardOutput=journal
StandardError=journal
SyslogIdentifier=aitbc-multimodal
# Security
NoNewPrivileges=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/home/oib/aitbc/apps/coordinator-api
[Install]
WantedBy=multi-user.target