Files
aitbc/systemd/aitbc-marketplace.service
aitbc a23f91cd9d fix: correct environment file references to use /etc/aitbc/.env
 Environment File Correction
- Updated all services to use /etc/aitbc/.env instead of /etc/aitbc/production.env
- Fixed EnvironmentFile paths in all systemd services
- Verified /etc/aitbc/.env exists and contains configuration
- Eliminated references to non-existent production.env

 Service Configuration
- All services now use the correct environment file
- Environment variables properly loaded
- Service startup should be more reliable
- No more missing environment file errors

 Production Structure
- Single environment file: /etc/aitbc/.env
- No duplicate or non-existent environment files
- Clean configuration management
- Proper FHS compliance

🚀 Environment file references corrected!
2026-04-02 14:39:26 +02:00

49 lines
1.1 KiB
Desktop File

[Unit]
Description=AITBC Production Marketplace Service
After=network.target aitbc-blockchain-node.service postgresql.service redis.service
Wants=aitbc-blockchain-node.service 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=MARKETPLACE_PORT=8002
Environment=WORKERS=1
Environment=PYTHONPATH=/opt/aitbc/services
EnvironmentFile=/etc/aitbc/.env
# Production execution
ExecStart=/opt/aitbc/venv/bin/python /opt/aitbc/services/marketplace.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
# 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=1G
CPUQuota=25%
[Install]
WantedBy=multi-user.target