From 2b8cbb43a544f9e25a0df7299ecc9e13b20becb8 Mon Sep 17 00:00:00 2001 From: Camilo Aguilar Date: Tue, 21 Apr 2015 16:18:31 -0400 Subject: [PATCH] Upstart: Consul leave now works as expected. --- terraform/aws/scripts/upstart.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/terraform/aws/scripts/upstart.conf b/terraform/aws/scripts/upstart.conf index af8260a7b..7c050dc01 100644 --- a/terraform/aws/scripts/upstart.conf +++ b/terraform/aws/scripts/upstart.conf @@ -4,6 +4,8 @@ start on runlevel [2345] stop on runlevel [!2345] respawn +# This is to avoid Upstart re-spawning the process upon `consul leave` +normal exit 0 INT script if [ -f "/etc/service/consul" ]; then