✅ Fixed Real Marketplace Service - Created real_marketplace_launcher.py to avoid uvicorn workers warning - Fixed read-only file system issue by creating log directory - Updated systemd service to use launcher script - Real marketplace now operational on port 8009 ✅ Marketplace Services Summary - Port 8002: GPU Resource Marketplace (GPU listings and bids) - Port 8009: AI Services Marketplace (OpenClaw agents + Ollama) - Both services now operational with distinct purposes 🚀 Two distinct marketplace services are now working correctly!
47 lines
1.1 KiB
Desktop File
47 lines
1.1 KiB
Desktop File
[Unit]
|
|
Description=AITBC Real Marketplace with AI Services
|
|
After=network.target aitbc-mining-blockchain.service aitbc-openclaw-ai.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=root
|
|
Group=root
|
|
WorkingDirectory=/opt/aitbc
|
|
Environment=PATH=/usr/bin:/usr/local/bin:/usr/bin:/bin
|
|
Environment=NODE_ID=aitbc
|
|
Environment=REAL_MARKETPLACE_PORT=8009
|
|
Environment=PYTHONPATH=/opt/aitbc/production/services
|
|
EnvironmentFile=/opt/aitbc/production/.env
|
|
|
|
# Real marketplace execution
|
|
ExecStart=/opt/aitbc/venv/bin/python /opt/aitbc/production/services/real_marketplace_launcher.py
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
KillMode=mixed
|
|
TimeoutStopSec=10
|
|
|
|
# Marketplace reliability
|
|
Restart=always
|
|
RestartSec=5
|
|
StartLimitBurst=5
|
|
StartLimitIntervalSec=60
|
|
|
|
# Marketplace logging
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
SyslogIdentifier=aitbc-real-marketplace
|
|
|
|
# Marketplace security
|
|
NoNewPrivileges=true
|
|
ProtectSystem=strict
|
|
ProtectHome=true
|
|
ReadWritePaths=/opt/aitbc/production/data/marketplace /opt/aitbc/production/logs/marketplace
|
|
|
|
# Marketplace performance
|
|
LimitNOFILE=65536
|
|
LimitNPROC=4096
|
|
MemoryMax=1G
|
|
CPUQuota=40%
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|