Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

fix(sensor-proxy): skip selfheal reinstall when service is healthy

rcourtman7dd036bcda13
diff --git a/scripts/install-sensor-proxy.sh b/scripts/install-sensor-proxy.sh
index 217f62926a..c1530027ff 100755
--- a/scripts/install-sensor-proxy.sh
+++ b/scripts/install-sensor-proxy.sh
@@ -3523,6 +3523,13 @@ if ! command -v systemctl >/dev/null 2>&1; then
exit 0
fi
+# Early exit if service is healthy - no work needed
+if systemctl is-active --quiet "${SERVICE}.service" 2>/dev/null; then
+ # Service is running - only do control plane reconcile if needed, skip everything else
+ attempt_control_plane_reconcile
+ exit 0
+fi
+
if ! systemctl list-unit-files 2>/dev/null | grep -q "^${SERVICE}\\.service"; then
if [[ -x "$INSTALLER" && -f "$CTID_FILE" ]]; then
log "Service unit missing; attempting reinstall"