[Unit] Description=UPS monitoring for BMS Requires=bmspy-server.service [Service] Type=exec WorkingDirectory=/usr/local/bmspy # Add --device NAME if bmspy-server reads more than one device. ExecStart=uv run --no-sync bmspy-ups RestartSec=5 Restart=on-failure # Status 2 is a wrong option or device name. A restart cannot fix it. RestartPreventExitStatus=2 [Install] WantedBy=default.target