Files
aitbc/systemd/aitbc-exchange-api.service
aitbc 3ead8d1399
Some checks failed
Systemd Sync / sync-systemd (push) Has been cancelled
Unify environment files - split global (.env) from node-specific (node.env)
2026-04-15 10:19:06 +02:00

26 lines
558 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/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