Files
shaggy-solar/LVX6048/etc/systemd/system/lvx-resolve-links.timer
2026-05-01 16:56:37 -04:00

21 lines
872 B
SYSTEMD

[Unit]
Description=Periodic re-resolve of LVX6048 hidraw symlinks (transient-failure backstop)
# Belt-and-suspenders against the udev RUN+= path: if the inverter is still
# enumerating at hot-plug time and the resolver finds no PI18-responsive
# device, this timer keeps trying every few minutes. The resolver itself is
# idempotent — runs that don't change anything are no-ops.
[Timer]
# Wall-clock schedule: fire every 5 minutes regardless of resolver service
# state. We previously used OnBootSec= + OnUnitActiveSec= which interacted
# badly with the resolver's RemainAfterExit=yes — once the unit was active,
# systemd considered the trigger condition met and stopped re-scheduling
# (observed on 2026-04-29: only 3 runs over 30 min, then nothing).
OnCalendar=*:0/5
AccuracySec=15s
Persistent=true
Unit=lvx-resolve-links.service
[Install]
WantedBy=timers.target