From cd6a6efb80545573f28919fc36c8d030c51767b0 Mon Sep 17 00:00:00 2001 From: sstent Date: Sat, 7 Feb 2026 18:00:38 -0800 Subject: [PATCH] fix: simplified primary health responder command --- litefs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litefs.yml b/litefs.yml index e2b5acd..5fd3cfc 100644 --- a/litefs.yml +++ b/litefs.yml @@ -36,4 +36,4 @@ proxy: # Commands to run only on the primary node. # This serves as a primary-only health check responder. exec: - - cmd: "while true; do echo -e 'HTTP/1.1 200 OK\r\nContent-Length: 7\r\n\r\nPrimary' | nc -l -p 8082; done" + - cmd: "nc -lk -p 8082 -e echo -e 'HTTP/1.1 200 OK\r\nContent-Length: 7\r\n\r\nPrimary'"