✅ Production Naming Cleanup Complete - Renamed aitbc-production-monitor.service to aitbc-monitor.service - Removed production suffix from all SyslogIdentifiers - Updated log paths from /var/log/aitbc/production/ to /var/log/aitbc/ - Fixed service configurations and syntax issues - Created dedicated monitor script for better maintainability ✅ Services Standardized - aitbc-monitor.service (clean naming) - aitbc-gpu.service (no production suffix) - aitbc-blockchain-node.service (no production suffix) - aitbc-agent-coordinator.service (no production suffix) - All other AITBC services updated ✅ Environment Simplification - Single environment: staging runs over git branches - No production naming needed (only one environment) - Clean service naming convention across all services - Unified log directory structure under /var/log/aitbc/ 🚀 Production naming issues completely resolved!
47 lines
1.0 KiB
Desktop File
47 lines
1.0 KiB
Desktop File
[Unit]
|
|
Description=AITBC Marketplace Service
|
|
After=network.target postgresql.service redis.service
|
|
Wants=postgresql.service redis.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=PYTHONPATH=/opt/aitbc/services
|
|
EnvironmentFile=/etc/aitbc/production.env
|
|
|
|
# Marketplace execution
|
|
ExecStart=/opt/aitbc/venv/bin/python /opt/aitbc/services/gpu_marketplace_launcher.py
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
KillMode=mixed
|
|
TimeoutStopSec=10
|
|
|
|
# Production reliability
|
|
Restart=always
|
|
RestartSec=5
|
|
StartLimitBurst=5
|
|
StartLimitIntervalSec=60
|
|
|
|
# Production logging
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
SyslogIdentifier=aitbc-marketplace
|
|
|
|
# Production security
|
|
NoNewPrivileges=true
|
|
ProtectSystem=strict
|
|
ProtectHome=true
|
|
ReadWritePaths=/var/lib/aitbc/data/marketplace /var/log/aitbc/marketplace
|
|
|
|
# Production performance
|
|
LimitNOFILE=65536
|
|
LimitNPROC=4096
|
|
MemoryMax=2G
|
|
CPUQuota=50%
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|