Files
bmspy/bmspy-server.service
T
tim ca641fdda8 Send service output to the journal at once
Set PYTHONUNBUFFERED=1 in the three service files. Python buffers its output if it does not write to a terminal, so log lines reached the journal late.
2026-10-10 10:59:35 +02:00

18 lines
412 B
Desktop File

[Unit]
Description=Make BMS data available for consumers
[Service]
Type=exec
# The full path of the git repo on your system
WorkingDirectory=/usr/local/bmspy
# Send each log line to the journal at once.
Environment=PYTHONUNBUFFERED=1
ExecStartPre=/usr/bin/install -d -onobody -gdialout -m770 /run/bmspy
ExecStart=uv run --no-sync bmspy-server
RestartSec=5
Restart=on-failure
[Install]
WantedBy=default.target