From 677ce81d400e54b1c0b8e834db3a970364fc30c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Maldonado?= Date: Wed, 2 Aug 2023 19:25:29 +0200 Subject: [PATCH] Cleanup haproxy.cfg * /run/haproxy.pid is not used * seamless reload is not functional and causes a warning at startup: "[WARNING] 213/153256 (1) : Can't open server state file '/var/lib/haproxy/server-state': No such file or directory" --- haproxy.cfg | 8 -------- 1 file changed, 8 deletions(-) diff --git a/haproxy.cfg b/haproxy.cfg index 011137e..bb046a8 100644 --- a/haproxy.cfg +++ b/haproxy.cfg @@ -1,12 +1,7 @@ global log stdout format raw daemon "${LOG_LEVEL}" - - pidfile /run/haproxy.pid maxconn 4000 - # Turn on stats unix socket - server-state-file /var/lib/haproxy/server-state - defaults mode http log global @@ -24,9 +19,6 @@ defaults timeout check 10s maxconn 3000 - # Allow seamless reloads - load-server-state-from-file global - # Use provided example error pages errorfile 400 /usr/local/etc/haproxy/errors/400.http errorfile 403 /usr/local/etc/haproxy/errors/403.http