Skip to content

Commit 481b5c9

Browse files
committed
BUG: haproxy needs a -W option to start correctly
1 parent 4e8b9eb commit 481b5c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: pkg/haproxy/process/direct-control.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ func (d *directControl) Service(action string) (err error) {
3737
logger.Error("haproxy is already running")
3838
return nil
3939
}
40-
cmd = exec.Command(d.Env.Binary, "-S", masterSocketArg, "-f", d.Env.MainCFGFile)
40+
cmd = exec.Command(d.Env.Binary, "-W", "-S", masterSocketArg, "-f", d.Env.MainCFGFile)
4141
if d.useAuxFile {
42-
cmd = exec.Command(d.Env.Binary, "-S", masterSocketArg, "-f", d.Env.MainCFGFile, "-f", d.Env.AuxCFGFile)
42+
cmd = exec.Command(d.Env.Binary, "-W", "-S", masterSocketArg, "-f", d.Env.MainCFGFile, "-f", d.Env.AuxCFGFile)
4343
}
4444
cmd.Stdout = os.Stdout
4545
cmd.Stderr = os.Stderr

0 commit comments

Comments
 (0)