From b5ed2fd9f34ab293997127a5df2b2e27b18e287a Mon Sep 17 00:00:00 2001 From: Jakob Reiter Date: Mon, 21 Mar 2016 17:12:29 +0100 Subject: [PATCH] Merged debian init script changes from https://github.com/elastic/elasticsearch/pull/16718. Fixes #69 --- templates/init/debian/elasticsearch.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/init/debian/elasticsearch.j2 b/templates/init/debian/elasticsearch.j2 index 02206cc..a402f6f 100755 --- a/templates/init/debian/elasticsearch.j2 +++ b/templates/init/debian/elasticsearch.j2 @@ -177,7 +177,7 @@ case "$1" in i=0 timeout=10 # Wait for the process to be properly started before exiting - until { cat "$PID_FILE" | xargs kill -0; } >/dev/null 2>&1 + until { kill -0 `cat "$PID_FILE"`; } >/dev/null 2>&1 do sleep 1 i=$(($i + 1))