Skip to content

Commit 55bff42

Browse files
author
Thibault Gilles
committed
Exit if dataplaneapi terminates
1 parent 930b690 commit 55bff42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

haproxy/cmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ func runCommand(sd *lib.Shutdown, stopSig syscall.Signal, path string, args ...s
2929
atomic.StoreUint32(&exited, 1)
3030
if err != nil {
3131
log.Errorf("%s exited with error: %s", path, err)
32-
sd.Shutdown(fmt.Sprintf("%s exited with error %s", path, err))
3332
} else {
3433
log.Errorf("%s exited", path)
3534
}
35+
sd.Shutdown(fmt.Sprintf("%s exited", path))
3636
}()
3737
go func() {
3838
<-sd.Stop

0 commit comments

Comments
 (0)