mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-22 03:04:03 +00:00
6f156cd211
When syscall.Exec() fails after the binary has already been atomically replaced on disk, the old process would log an error and keep running indefinitely with stale code. The next update check (1 hour later) sees the on-disk version matches the server and skips the update — so the restart is never retried. Now the agent exits with code 1 when this happens, allowing systemd (or any service manager) to restart it with the new binary. This fixes the "temperature broken after each upgrade" reports where users had to manually reinstall the agent after every Pulse server upgrade. Fixes #1247