From 55bff42d10d53e3d5942a84ec6d704802d0b4317 Mon Sep 17 00:00:00 2001 From: Thibault Gilles Date: Wed, 25 Sep 2019 15:08:48 +0200 Subject: [PATCH] Exit if dataplaneapi terminates --- haproxy/cmd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/haproxy/cmd.go b/haproxy/cmd.go index fa307b8..d3b0550 100644 --- a/haproxy/cmd.go +++ b/haproxy/cmd.go @@ -29,10 +29,10 @@ func runCommand(sd *lib.Shutdown, stopSig syscall.Signal, path string, args ...s atomic.StoreUint32(&exited, 1) if err != nil { log.Errorf("%s exited with error: %s", path, err) - sd.Shutdown(fmt.Sprintf("%s exited with error %s", path, err)) } else { log.Errorf("%s exited", path) } + sd.Shutdown(fmt.Sprintf("%s exited", path)) }() go func() { <-sd.Stop