From ea22e18d287623776b0342842a48bd02cf828bb1 Mon Sep 17 00:00:00 2001 From: "Noah H. Smith" Date: Sun, 28 Sep 2014 12:28:21 -0700 Subject: [PATCH] kill with SIGINT, gracefully leave cluster --- templates/default/consul-init.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/default/consul-init.erb b/templates/default/consul-init.erb index 6559a05e..d28ca3cb 100644 --- a/templates/default/consul-init.erb +++ b/templates/default/consul-init.erb @@ -45,7 +45,7 @@ case "$1" in stop) if is_running; then echo -n "Stopping $NAME..." - kill `get_pid` + kill -INT `get_pid` for i in {1..10} do if ! is_running; then