From d44aac61ee535fdd938d693d9263a4fa87189fa1 Mon Sep 17 00:00:00 2001 From: Yann Cezard Date: Thu, 3 Mar 2016 17:50:00 +0100 Subject: [PATCH] Using exec to launch consul-template, in order to take PID 1. --- launch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launch.sh b/launch.sh index 2ad3db0..8767990 100755 --- a/launch.sh +++ b/launch.sh @@ -77,7 +77,7 @@ function launch_haproxy { # be started) [ -f /haproxy/haproxy.cfg ] && rm /haproxy/haproxy.cfg - ${CONSUL_TEMPLATE} -config ${CONSUL_CONFIG} \ + exec ${CONSUL_TEMPLATE} -config ${CONSUL_CONFIG} \ -log-level ${CONSUL_LOGLEVEL} \ -wait ${CONSUL_MINWAIT}:${CONSUL_MAXWAIT} \ -consul ${CONSUL_CONNECT} ${ctargs} ${vars}