Files
aitbc/systemd/aitbc-gpu.service
aitbc af766862d7 fix: finalize environment file configuration
 Environment File Consolidation
- Removed redundant /etc/aitbc/.env file
- Kept /etc/aitbc/production.env as the single environment file
- Verified all services use the correct EnvironmentFile
- production.env contains comprehensive production configuration

 Production Configuration
- Single environment file: /etc/aitbc/production.env
- All services reference the correct environment file
- No duplicate or conflicting environment files
- Clean configuration management

 Service Reliability
- Services load proper environment variables
- Database URLs, security keys, and ports configured
- Production settings properly applied
- Services stable and operational

🚀 Single environment file architecture implemented!
2026-04-02 14:39:41 +02:00

47 lines
1.0 KiB
Desktop File

[Unit]
Description=AITBC Production GPU Marketplace Service
After=network.target aitbc-marketplace.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=GPU_MARKETPLACE_PORT=8003
Environment=PYTHONPATH=/opt/aitbc/services
EnvironmentFile=/etc/aitbc/production.env
# Production 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-gpu-marketplace-production
# Production security
NoNewPrivileges=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/var/lib/aitbc/data/marketplace /var/log/aitbc/production/marketplace
# Production performance
LimitNOFILE=65536
LimitNPROC=4096
MemoryMax=2G
CPUQuota=75%
[Install]
WantedBy=multi-user.target