Skip to content

Commit

Permalink
BUG/MINOR: fix missing pidfile reconfiguration when in external mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanmatmati authored and oktalz committed Jun 2, 2022
1 parent 4b47282 commit ff9c9c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/haproxy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func New(osArgs utils.OSArgs, env env.Env, cfgFile []byte, p process.Process, cl

if osArgs.External {
cfgFile = []byte(strings.ReplaceAll(string(cfgFile), "/var/run/haproxy-runtime-api.sock", h.RuntimeSocket))
cfgFile = []byte(strings.ReplaceAll(string(cfgFile), "pidfile /var/run/haproxy.pid", "pidfile "+h.PIDFile))
}

err = renameio.WriteFile(h.MainCFGFile, cfgFile, 0o755)
Expand Down

0 comments on commit ff9c9c0

Please sign in to comment.