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'"