Name the device in the bmspy-ups service file
bmspy-ups needs --device if the server reads more than one device. The service file now starts it with --device network.
This commit is contained in:
+2
-2
@@ -7,8 +7,8 @@ Type=exec
|
|||||||
WorkingDirectory=/usr/local/bmspy
|
WorkingDirectory=/usr/local/bmspy
|
||||||
# Send each log line to the journal at once.
|
# Send each log line to the journal at once.
|
||||||
Environment=PYTHONUNBUFFERED=1
|
Environment=PYTHONUNBUFFERED=1
|
||||||
# Add --device NAME if bmspy-server reads more than one device.
|
# The device name is necessary if bmspy-server reads more than one device.
|
||||||
ExecStart=uv run --no-sync bmspy-ups
|
ExecStart=uv run --no-sync bmspy-ups --device network
|
||||||
RestartSec=5
|
RestartSec=5
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
# Status 2 is a wrong option or device name. A restart cannot fix it.
|
# Status 2 is a wrong option or device name. A restart cannot fix it.
|
||||||
|
|||||||
Reference in New Issue
Block a user