Skip to content

Commit

Permalink
MINOR: fix zombie haproxy process in direct control mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanmatmati authored and Mo3m3n committed Nov 20, 2021
1 parent 3d42779 commit 09f3af8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller/haproxy/process/direct-control.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (d *directControl) HaproxyService(action string) (err error) {
}
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
return cmd.Start()
return cmd.Run()
case "stop":
if processErr != nil {
logger.Error("haproxy already stopped")
Expand Down

0 comments on commit 09f3af8

Please sign in to comment.