Files
aitbc/systemd/aitbc-exchange-api.service
aitbc 456ba8ce9b
All checks were successful
Systemd Sync / sync-systemd (push) Successful in 4s
fix: systemd ExecStart paths to use app-specific venvs
2026-04-20 13:10:28 +02:00

26 lines
573 B
Desktop File

[Unit]
Description=AITBC Exchange API Service
After=network.target
Wants=network.target
[Service]
Type=simple
User=root
Group=root
WorkingDirectory=/opt/aitbc/apps/exchange
EnvironmentFile=/etc/aitbc/.env
EnvironmentFile=/etc/aitbc/node.env
ExecStart=/opt/aitbc/apps/exchange/.venv/bin/python simple_exchange_api.py --port 8001
ExecReload=/bin/kill -HUP $MAINPID
Restart=always
RestartSec=5
StandardOutput=journal
StandardError=journal
SyslogIdentifier=aitbc-exchange-api
# Allow database writes for SQLite WAL mode
ProtectSystem=no
[Install]
WantedBy=multi-user.target