diff --git a/bmspy-ups.service b/bmspy-ups.service index aba2963..f87429c 100644 --- a/bmspy-ups.service +++ b/bmspy-ups.service @@ -7,8 +7,8 @@ Type=exec WorkingDirectory=/usr/local/bmspy # Send each log line to the journal at once. Environment=PYTHONUNBUFFERED=1 -# Add --device NAME if bmspy-server reads more than one device. -ExecStart=uv run --no-sync bmspy-ups +# The device name is necessary if bmspy-server reads more than one device. +ExecStart=uv run --no-sync bmspy-ups --device network RestartSec=5 Restart=on-failure # Status 2 is a wrong option or device name. A restart cannot fix it.