refactor: rename marketplace service from enhanced to standard name
Marketplace Service Renaming - Complete: ✅ SERVICE RENAMED: Changed aitbc-marketplace-enhanced.service to aitbc-marketplace.service - systemd/aitbc-marketplace-enhanced.service: Renamed to aitbc-marketplace.service - systemd/aitbc-marketplace-enhanced.service.d: Removed old configuration directory - setup.sh: Updated all references to use aitbc-marketplace.service - Documentation: Updated all references to use new service name ✅ RENAMING RATIONALE: 🎯 Simplification: Standard service naming convention 📝 Clarity: Removed 'enhanced' suffix for cleaner naming 🔧 Consistency: Matches other service naming patterns 🎨 Standardization: All services follow aitbc-{name}.service pattern ✅ SETUP SCRIPT UPDATES: 📦 install_services(): Updated services array 🚀 start_services(): Updated systemctl start command 🔄 setup_autostart(): Updated systemctl enable command 📋 Status Check: Updated systemctl is-active check ✅ DOCUMENTATION UPDATES: 📚 documented_AITBC_Enhanced_Services__8010-8016__Implementation.md: Updated service path 📚 beginner/02_project/1_files.md: Updated file reference 📚 beginner/02_project/3_infrastructure.md: Updated service table 📚 beginner/02_project/aitbc.md: Updated systemctl commands ✅ SERVICE CONFIGURATION: 📁 systemd/aitbc-marketplace.service: Main service file (renamed) 📁 systemd/aitbc-marketplace.service.d: Configuration directory ⚙️ 10-central-env.conf: EnvironmentFile configuration 🔧 Port 8014: Marketplace API service on port 8014 ✅ CODEBASE REWIRED: 🔧 All systemctl commands: Updated to use new service name 📋 All service arrays: Updated in setup script 📚 All documentation: Updated to reference new name 🎯 All references: Consistent naming throughout codebase ✅ SERVICE FUNCTIONALITY: 🚀 Port 8014: Enhanced marketplace API service 🎯 Agent-First: GPU marketplace for AI compute services 📦 FastAPI: Built with uvicorn FastAPI framework 🔒 Security: Comprehensive systemd security settings 👤 Integration: Integrated with coordinator API ✅ BENEFITS: ✅ Cleaner Naming: Standard service naming convention ✅ Consistency: Matches other service patterns ✅ Simplicity: Removed unnecessary 'enhanced' qualifier ✅ Maintainability: Easier to reference and manage ✅ Documentation: Clear and consistent references RESULT: Successfully renamed marketplace service to standard naming convention and updated entire codebase to use new name, providing cleaner and more consistent service management.
This commit is contained in:
8
setup.sh
8
setup.sh
@@ -165,7 +165,7 @@ install_services() {
|
||||
"aitbc-blockchain-node.service"
|
||||
"aitbc-blockchain-rpc.service"
|
||||
"aitbc-multimodal-gpu.service"
|
||||
"aitbc-marketplace-enhanced.service"
|
||||
"aitbc-marketplace.service"
|
||||
)
|
||||
|
||||
for service in "${services[@]}"; do
|
||||
@@ -241,12 +241,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-enhanced 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 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-enhanced; 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; then
|
||||
success "Services started successfully via systemd"
|
||||
else
|
||||
warning "Some systemd services failed, falling back to manual startup"
|
||||
@@ -275,7 +275,7 @@ setup_autostart() {
|
||||
systemctl enable aitbc-blockchain-node.service
|
||||
systemctl enable aitbc-blockchain-rpc.service
|
||||
systemctl enable aitbc-multimodal-gpu.service
|
||||
systemctl enable aitbc-marketplace-enhanced.service
|
||||
systemctl enable aitbc-marketplace.service
|
||||
|
||||
success "Auto-start configured"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user