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.
This commit is contained in:
tim
2026-10-10 10:59:35 +02:00
parent 98fd08e39b
commit ca641fdda8
3 changed files with 6 additions and 0 deletions
+2
View File
@@ -5,6 +5,8 @@ Requires=bmspy-server.service
[Service]
Type=exec
WorkingDirectory=/usr/local/bmspy
# Send each log line to the journal at once.
Environment=PYTHONUNBUFFERED=1
ExecStart=uv run --no-sync bmspy-influxdb --url http://localhost/ --org 0987654321 --bucket bms --token XXXX
RestartSec=5
Restart=on-failure