fix(sensor-proxy): prevent installer hang on control-plane sync

Fixes #819

The installer was hanging at 'Pending control-plane sync detected' because
systemctl start ran synchronously, waiting for the selfheal service to complete.
If the control-plane sync failed or took a long time (e.g., Proxmox node not
configured in Pulse yet), the installer would hang indefinitely.

Changed to use 'systemctl start --no-block' to run the selfheal service
asynchronously in the background. The sync will still be attempted, but the
installer will complete immediately and show the success message.
This commit is contained in:
rcourtman 2025-12-15 08:39:06 +00:00
parent 3bc2b4944b
commit 4bd9c3cf69

View file

@ -3586,9 +3586,10 @@ EOF
systemctl enable --now pulse-sensor-proxy-selfheal.timer >/dev/null 2>&1 || true
if [[ -f "$PENDING_CONTROL_PLANE_FILE" ]]; then
if [[ "$QUIET" != true ]]; then
print_info "Pending control-plane sync detected; triggering immediate retry..."
print_info "Pending control-plane sync detected; will retry in background..."
fi
systemctl start pulse-sensor-proxy-selfheal.service >/dev/null 2>&1 || true
# Use --no-block to avoid hanging the installer if sync takes a long time
systemctl start --no-block pulse-sensor-proxy-selfheal.service >/dev/null 2>&1 || true
fi
fi