Files
aitbc/systemd/aitbc-marketplace.service
aitbc 86bbd732d0
Some checks failed
Systemd Sync / sync-systemd (push) Has been cancelled
Change exchange API service to use venv Python interpreter and update marketplace service syslog identifier
- Update aitbc-exchange-api.service ExecStart from /opt/aitbc/apps/coordinator-api/.venv/bin/python to /opt/aitbc/venv/bin/python
- Change SyslogIdentifier in aitbc-marketplace.service from aitbc-marketplace-production to aitbc-marketplace
2026-04-15 09:29:38 +02:00

48 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=8007
Environment=WORKERS=1
Environment=PYTHONPATH=/opt/aitbc/services
EnvironmentFile=/etc/aitbc/production.env
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 security
NoNewPrivileges=true
ProtectHome=true
# Production performance
LimitNOFILE=65536
LimitNPROC=4096
MemoryMax=1G
CPUQuota=25%
[Install]
WantedBy=multi-user.target