Files
shaggy-solar/LVX6048/etc/systemd/system/powermon.service

21 lines
616 B
Desktop File

[Unit]
Description=powermon LVX6048 -> MQTT bridge
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=noise
Group=dialout
ExecStart=/home/noise/.local/bin/powermon -C /home/noise/.config/powermon/powermon.yaml
Restart=always
RestartSec=10
# Disable systemd's default rate-limiter: when the inverter is briefly
# unreachable (sunrise cold-start / USB hiccup), we want to keep retrying
# every 10s indefinitely — not give up after 5 failures in 10s like the
# default StartLimitBurst=5 / StartLimitIntervalSec=10s would.
StartLimitIntervalSec=0
[Install]
WantedBy=multi-user.target