Skip to content

Commit

Permalink
MINOR: switch to s6 reload if socket reload fails
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanmatmati committed Oct 31, 2024
1 parent 9cc03a0 commit 2ad1dfb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/haproxy/process/s6-overlay.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 2ad1dfb

Please # to comment.