From 8a51a3e655b7b29e5f5e07e9da7ff219b4ec9976 Mon Sep 17 00:00:00 2001 From: CyberMind-FR Date: Tue, 24 Feb 2026 07:03:57 +0100 Subject: [PATCH] fix(led-pulse): Check HAProxy on host instead of LXC container HAProxy runs on the host, not in an LXC container. The LED pulse script was incorrectly checking `lxc-attach -n haproxy -- pgrep haproxy` which always failed, causing constant SPUNK ALERT red LED flashing. Changed to check host process directly with `pgrep haproxy`. Co-Authored-By: Claude Opus 4.5 --- package/secubox/secubox-core/root/usr/sbin/secubox-led-pulse | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/secubox/secubox-core/root/usr/sbin/secubox-led-pulse b/package/secubox/secubox-core/root/usr/sbin/secubox-led-pulse index 7b90a271..9ba52d74 100755 --- a/package/secubox/secubox-core/root/usr/sbin/secubox-led-pulse +++ b/package/secubox/secubox-core/root/usr/sbin/secubox-led-pulse @@ -32,7 +32,8 @@ check_critical_services() { local critical=0 # HAProxy must be running (PERMANENT priority) - if ! lxc-attach -n haproxy -- pgrep haproxy >/dev/null 2>&1; then + # Check host process (HAProxy runs on host, not in LXC) + if ! pgrep haproxy >/dev/null 2>&1; then critical=1 fi