refactor: rename AI services to cleaner naming convention

AI Services Renaming - Complete:
 AI SERVICES RENAMED: Simplified AI service naming for consistency
- systemd/aitbc-advanced-ai.service: Renamed to aitbc-ai.service
- systemd/aitbc-adaptive-learning.service: Renamed to aitbc-learning.service
- systemd/aitbc-adaptive-learning.service.d: Renamed to aitbc-learning.service.d
- setup.sh: Updated all references to use new service names
- Documentation: Updated all references to use new service names

 RENAMING RATIONALE:
🎯 Simplification: Cleaner, more intuitive service names
📝 Clarity: Removed verbose 'advanced-' and 'adaptive-' prefixes
🔧 Consistency: Matches standard service naming patterns
🎨 Standardization: All services follow aitbc-{name}.service pattern

 SERVICE MAPPINGS:
🤖 aitbc-advanced-ai.service → aitbc-ai.service
🧠 aitbc-adaptive-learning.service → aitbc-learning.service
📁 Configuration directories: Renamed accordingly
⚙️ Environment configs: Preserved in new directories

 SETUP SCRIPT UPDATES:
📦 install_services(): Updated services array with new names
🚀 start_services(): Updated systemctl start commands
🔄 setup_autostart(): Updated systemctl enable commands
📋 Status Check: Updated systemctl is-active checks

 DOCUMENTATION UPDATES:
📚 documented_AITBC_Enhanced_Services__8010-8016__Implementation.md: Updated service paths and responses
📚 ENHANCED_SERVICES_IMPLEMENTATION_GUIDE.md: Updated systemctl commands
📋 Service responses: Updated JSON service names to match
🎯 Port references: Updated to use new service names

 COMPLETE SERVICE LIST (FINAL):
🔧 aitbc-wallet.service: Wallet management
🔧 aitbc-coordinator-api.service: Coordinator API
🔧 aitbc-exchange-api.service: Exchange API
🔧 aitbc-blockchain-node.service: Blockchain node
🔧 aitbc-blockchain-rpc.service: Blockchain RPC
🔧 aitbc-multimodal-gpu.service: GPU multimodal
🔧 aitbc-marketplace.service: Marketplace
🔧 aitbc-openclaw.service: OpenClaw orchestration
🔧 aitbc-ai.service: AI capabilities (RENAMED)
🔧 aitbc-learning.service: Learning capabilities (RENAMED)

 BENEFITS:
 Cleaner Naming: More intuitive and shorter service names
 Consistent Pattern: All services follow same naming convention
 Easier Management: Simpler systemctl commands
 Better UX: Easier to remember and type service names
 Maintainability: Clearer service identification

 CODEBASE CONSISTENCY:
🔧 All systemctl commands: Updated to use new service names
📋 All service arrays: Updated in setup script
📚 All documentation: Updated to reference new names
🎯 All references: Consistent naming throughout codebase

RESULT: Successfully renamed AI services to cleaner naming convention, providing more intuitive and consistent service management across the entire AITBC ecosystem with standardized naming patterns.
This commit is contained in:
2026-03-30 17:53:06 +02:00
parent a2216881bd
commit 98409556f2
6 changed files with 11 additions and 11 deletions

View File

@@ -47,7 +47,7 @@ This document provides comprehensive technical documentation for aitbc enhanced
/etc/systemd/system/aitbc-multimodal-gpu.service # Port 8010
/etc/systemd/system/aitbc-multimodal.service # Port 8011
/etc/systemd/system/aitbc-modality-optimization.service # Port 8012
/etc/systemd/system/aitbc-adaptive-learning.service # Port 8013
/etc/systemd/system/aitbc-learning.service # Port 8013
/etc/systemd/system/aitbc-marketplace.service # Port 8014
/etc/systemd/system/aitbc-openclaw.service # Port 8015
/etc/systemd/system/aitbc-web-ui.service # Port 8016
@@ -62,7 +62,7 @@ This document provides comprehensive technical documentation for aitbc enhanced
curl -s http://localhost:8010/health ✅ {"status":"ok","service":"gpu-multimodal","port":8010}
curl -s http://localhost:8011/health ✅ {"status":"ok","service":"gpu-multimodal","port":8011}
curl -s http://localhost:8012/health ✅ {"status":"ok","service":"modality-optimization","port":8012}
curl -s http://localhost:8013/health ✅ {"status":"ok","service":"adaptive-learning","port":8013}
curl -s http://localhost:8013/health ✅ {"status":"ok","service":"learning","port":8013}
curl -s http://localhost:8016/health ✅ {"status":"ok","service":"web-ui","port":8016}
```
@@ -156,7 +156,7 @@ sudo netstat -tlnp | grep -E ":(8010|8011|8012|8013|8014|8015|8016)"
```json
{
"status": "ok",
"service": "adaptive-learning",
"service": "learning",
"port": 8013,
"learning_active": true,
"learning_mode": "online",

View File

@@ -283,10 +283,10 @@ sudo fuser -k 8010/tcp
free -h
# Monitor service memory
systemctl status aitbc-adaptive-learning.service --no-pager
systemctl status aitbc-learning.service --no-pager
# Adjust memory limits
systemctl edit aitbc-adaptive-learning.service
systemctl edit aitbc-learning.service
```
### Performance Optimization

View File

@@ -167,8 +167,8 @@ install_services() {
"aitbc-multimodal-gpu.service"
"aitbc-marketplace.service"
"aitbc-openclaw.service"
"aitbc-advanced-ai.service"
"aitbc-adaptive-learning.service"
"aitbc-ai.service"
"aitbc-learning.service"
)
for service in "${services[@]}"; do
@@ -244,12 +244,12 @@ start_services() {
log "Starting AITBC services..."
# Try systemd first
if systemctl start aitbc-wallet aitbc-coordinator-api aitbc-exchange-api aitbc-blockchain-node aitbc-blockchain-rpc aitbc-multimodal-gpu aitbc-marketplace aitbc-openclaw aitbc-advanced-ai aitbc-adaptive-learning 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 aitbc-openclaw aitbc-ai aitbc-learning 2>/dev/null; then
log "Services started via systemd"
sleep 5
# 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 aitbc-marketplace aitbc-openclaw aitbc-advanced-ai aitbc-adaptive-learning; 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 aitbc-openclaw aitbc-ai aitbc-learning; then
success "Services started successfully via systemd"
else
warning "Some systemd services failed, falling back to manual startup"
@@ -280,8 +280,8 @@ setup_autostart() {
systemctl enable aitbc-multimodal-gpu.service
systemctl enable aitbc-marketplace.service
systemctl enable aitbc-openclaw.service
systemctl enable aitbc-advanced-ai.service
systemctl enable aitbc-adaptive-learning.service
systemctl enable aitbc-ai.service
systemctl enable aitbc-learning.service
success "Auto-start configured"
}