✅ 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!
45 lines
1.0 KiB
Desktop File
45 lines
1.0 KiB
Desktop File
[Unit]
|
|
Description=AITBC Agent Coordinator Service
|
|
After=network.target redis.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=root
|
|
Group=root
|
|
WorkingDirectory=/opt/aitbc/apps/agent-coordinator
|
|
Environment=PATH=/usr/bin:/usr/local/bin:/usr/bin:/bin
|
|
Environment=PYTHONPATH=/opt/aitbc/apps/agent-coordinator/src
|
|
EnvironmentFile=/etc/aitbc/production.env
|
|
|
|
# Agent coordinator execution
|
|
ExecStart=/opt/aitbc/venv/bin/python -m uvicorn src.app.main:app --host 0.0.0.0 --port 9001
|
|
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-agent-coordinator
|
|
|
|
# Production security
|
|
NoNewPrivileges=true
|
|
ProtectSystem=strict
|
|
ProtectHome=true
|
|
ReadWritePaths=/var/lib/aitbc/data/agent-coordinator /var/log/aitbc/agent-coordinator
|
|
|
|
# Production performance
|
|
LimitNOFILE=65536
|
|
LimitNPROC=4096
|
|
MemoryMax=2G
|
|
CPUQuota=50%
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|