From 2ad1dfbc0c3dbcc361c960e5b6258c9fbf1ec3eb Mon Sep 17 00:00:00 2001 From: Ivan Matmati Date: Thu, 31 Oct 2024 14:45:53 +0100 Subject: [PATCH] MINOR: switch to s6 reload if socket reload fails --- pkg/haproxy/process/s6-overlay.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/haproxy/process/s6-overlay.go b/pkg/haproxy/process/s6-overlay.go index d05b6431..f7f69cc8 100644 --- a/pkg/haproxy/process/s6-overlay.go +++ b/pkg/haproxy/process/s6-overlay.go @@ -58,11 +58,11 @@ func (d *s6Control) Service(action string) error { case "reload": if d.masterSocketValid { msg, err := d.masterSocket.Reload() - if err != nil { - d.logger.Error(err) + if err == nil { + d.logger.Debug(msg) + return nil } - d.logger.Debug(msg) - return err + d.logger.Error(err) } cmd = exec.Command("s6-svc", "-2", "/run/service/haproxy")