Add UPS functionality

This commit is contained in:
2024-05-14 09:21:20 +02:00
parent af97e393f6
commit b672c9f5ae
3 changed files with 208 additions and 0 deletions

13
bmspy-ups.service Normal file
View File

@ -0,0 +1,13 @@
[Unit]
Description=UPS monitoring for BMS
Requires=bmspy-server.service
[Service]
Type=exec
WorkingDirectory=/usr/local/bmspy
ExecStart=poetry run bmspy-ups
RestartSec=5
Restart=on-failure
[Install]
WantedBy=default.target