We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9375432 commit 6a7f5afCopy full SHA for 6a7f5af
main.go
@@ -92,6 +92,14 @@ func main() {
92
log.Warning("reload failed")
93
continue
94
}
95
+ go func() {
96
+ select {
97
+ case <-cmd.Terminated:
98
+ // old haproxy terminated - successfully started a new process replacing the old one
99
+ log.Notice(fmt.Sprintf("process %d terminated : %s", cmd.Process.Pid, cmd.Status()))
100
+ log.Notice("reload successful")
101
+ }
102
+ }()
103
104
cmd = tmp
105
log.Notice(fmt.Sprintf("started process with pid %d and status %s", tmp.Process.Pid, tmp.Status()))
0 commit comments