Skip to content

Commit

Permalink
BUG: haproxy needs a -W option to start correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanmatmati committed Jan 20, 2025
1 parent 43c9a24 commit 49d4230
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/haproxy/process/direct-control.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ func (d *directControl) Service(action string) (err error) {
logger.Error("haproxy is already running")
return nil
}
cmd = exec.Command(d.Env.Binary, "-S", masterSocketArg, "-f", d.Env.MainCFGFile)
cmd = exec.Command(d.Env.Binary, "-W", "-S", masterSocketArg, "-f", d.Env.MainCFGFile)
if d.useAuxFile {
cmd = exec.Command(d.Env.Binary, "-S", masterSocketArg, "-f", d.Env.MainCFGFile, "-f", d.Env.AuxCFGFile)
cmd = exec.Command(d.Env.Binary, "-W", "-S", masterSocketArg, "-f", d.Env.MainCFGFile, "-f", d.Env.AuxCFGFile)
}
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
Expand Down

0 comments on commit 49d4230

Please sign in to comment.