]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: server-state: Avoid warning on 'file not found'
authorMarcos de Oliveira <markinholiveira@gmail.com>
Thu, 20 Jul 2023 20:21:09 +0000 (17:21 -0300)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 21 Jul 2023 13:08:27 +0000 (15:08 +0200)
commit462b54dee2411957794f082184337db8fc6ff141
treeed2b4967b1e3346ccebad71ce45fe63db3a9b80c
parent122a903b94d5db52923ebd2f49a960defddfd40a
BUG/MINOR: server-state: Avoid warning on 'file not found'

On a clean installation, users might want to use server-state-file and
the recommended zero-warning option. This caused a problem if
server-state-file was not found, as a warning was emited, causing
startup to fail.

This will allow users to specify nonexistent server-state-file at first,
and dump states to the file later.

Fixes #2190

CF: Technically speaking, this patch can be backported to all stable
    versions. But it is better to do so to 2.8 only for now.
src/server_state.c