diff --git a/templates/consul.conf.j2 b/templates/consul.conf.j2 index 5554367..43c3469 100644 --- a/templates/consul.conf.j2 +++ b/templates/consul.conf.j2 @@ -20,7 +20,7 @@ script # Set GOMAXPROCS to use all our CPUs, because Consul can block a scheduler thread # Use su to become consul user non-interactively on old Upstart versions (see http://superuser.com/a/234541/76168) - exec su -s /bin/sh -c 'GOMAXPROCS=`nproc` exec "$0" "$@" 1>> {{ consul_log_file }} &2>1' consul -- /opt/consul/bin/consul agent \ + exec su -s /bin/sh -c 'GOMAXPROCS=`nproc` exec "$0" "$@" 1>> {{ consul_log_file }} 2>&1' consul -- /opt/consul/bin/consul agent \ {% if consul_dynamic_bind %} -bind=$BIND \ {% endif %}