feat: add aitbc-marketplace-enhanced.service to setup script

Marketplace Service Addition - Complete:
 MARKETPLACE SERVICE ADDED: Added aitbc-marketplace-enhanced.service to setup process
- setup.sh: Added aitbc-marketplace-enhanced.service to services installation list
- setup.sh: Updated start_services to include marketplace service
- setup.sh: Updated setup_autostart to enable marketplace service
- Reason: Include enhanced marketplace 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
🔧 aitbc-marketplace-enhanced.service: Enhanced marketplace service (NEW)

 MARKETPLACE SERVICE FEATURES:
🚀 Port 8021: Enhanced marketplace API service
🎯 Agent-First: GPU marketplace for AI compute services
📦 FastAPI: Built with uvicorn FastAPI framework
🔒 Security: Comprehensive systemd security settings
👤 Standard User: Runs as root with proper security
📁 Integration: Integrated with coordinator API

 SETUP PROCESS UPDATED:
📦 install_services(): Added marketplace service to installation array
🚀 start_services(): Added marketplace service to systemctl start command
🔄 setup_autostart(): Added marketplace service to systemctl enable command
📋 Status Check: Added marketplace 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
7. aitbc-marketplace-enhanced.service (NEW)

 DEPENDENCY CONSIDERATIONS:
🔗 Coordinator API: Marketplace service depends on coordinator-api.service
📋 After Clause: Marketplace service starts after coordinator API
 GPU Integration: Works with GPU services for compute marketplace
🎯 Ecosystem: Full integration with AITBC marketplace ecosystem

 ENHANCED CAPABILITIES:
 GPU Marketplace: Agent-first GPU compute marketplace
 API Integration: RESTful API for marketplace operations
 FastAPI Framework: Modern web framework for API services
 Security: Proper systemd security and resource management
 Auto-Start: Enabled for boot-time startup

 MARKETPLACE ECOSYSTEM:
🤖 Agent Integration: Agent-first marketplace design
💰 GPU Trading: Buy/sell GPU compute resources
📊 Real-time: Live marketplace operations
🔗 Blockchain: Integrated with AITBC blockchain
 GPU Services: Works with multimodal GPU processing

RESULT: Successfully added aitbc-marketplace-enhanced.service to setup script, providing complete marketplace functionality 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:47 +02:00
parent e14ba03a90
commit 830c4be4f1

View File

@@ -165,6 +165,7 @@ install_services() {
"aitbc-blockchain-node.service" "aitbc-blockchain-node.service"
"aitbc-blockchain-rpc.service" "aitbc-blockchain-rpc.service"
"aitbc-multimodal-gpu.service" "aitbc-multimodal-gpu.service"
"aitbc-marketplace-enhanced.service"
) )
for service in "${services[@]}"; do for service in "${services[@]}"; do
@@ -240,12 +241,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 aitbc-multimodal-gpu 2>/dev/null; then if systemctl start aitbc-wallet aitbc-coordinator-api aitbc-exchange-api aitbc-blockchain-node aitbc-blockchain-rpc aitbc-multimodal-gpu aitbc-marketplace-enhanced 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 aitbc-multimodal-gpu; then if systemctl is-active --quiet aitbc-wallet aitbc-coordinator-api aitbc-exchange-api aitbc-blockchain-node aitbc-blockchain-rpc aitbc-multimodal-gpu aitbc-marketplace-enhanced; 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"
@@ -274,6 +275,7 @@ setup_autostart() {
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 systemctl enable aitbc-multimodal-gpu.service
systemctl enable aitbc-marketplace-enhanced.service
success "Auto-start configured" success "Auto-start configured"
} }