Change exchange API service to use venv Python interpreter and update marketplace service syslog identifier
Some checks failed
Systemd Sync / sync-systemd (push) Has been cancelled
Some checks failed
Systemd Sync / sync-systemd (push) Has been cancelled
- 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
This commit is contained in:
@@ -9,7 +9,7 @@ User=root
|
|||||||
Group=root
|
Group=root
|
||||||
WorkingDirectory=/opt/aitbc/apps/exchange
|
WorkingDirectory=/opt/aitbc/apps/exchange
|
||||||
EnvironmentFile=/etc/aitbc/.env
|
EnvironmentFile=/etc/aitbc/.env
|
||||||
ExecStart=/opt/aitbc/apps/coordinator-api/.venv/bin/python simple_exchange_api.py --port 8001
|
ExecStart=/opt/aitbc/venv/bin/python simple_exchange_api.py --port 8001
|
||||||
ExecReload=/bin/kill -HUP $MAINPID
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=5
|
RestartSec=5
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ StartLimitIntervalSec=60
|
|||||||
# Production logging
|
# Production logging
|
||||||
StandardOutput=journal
|
StandardOutput=journal
|
||||||
StandardError=journal
|
StandardError=journal
|
||||||
SyslogIdentifier=aitbc-marketplace-production
|
SyslogIdentifier=aitbc-marketplace
|
||||||
|
|
||||||
# Production security
|
# Production security
|
||||||
NoNewPrivileges=true
|
NoNewPrivileges=true
|
||||||
|
|||||||
Reference in New Issue
Block a user