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 <noreply@anthropic.com>
This commit is contained in:
CyberMind-FR 2026-02-24 07:03:57 +01:00
parent 1ded6f155a
commit 8a51a3e655

View File

@ -32,7 +32,8 @@ check_critical_services() {
local critical=0 local critical=0
# HAProxy must be running (PERMANENT priority) # 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 critical=1
fi fi