From aa51a8af9c622ffb87b4bbb5b1df7799faf32443 Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Sun, 26 Feb 2012 20:43:30 +0200 Subject: [PATCH] add back writing pid from shell as well as writing it from Java process, for some reason, it caused a strange failure in clinton test harness, we need to chase it down, but for now, lets bring this back --- bin/elasticsearch | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/elasticsearch b/bin/elasticsearch index 4a716a40519..4adb76cc09a 100755 --- a/bin/elasticsearch +++ b/bin/elasticsearch @@ -125,8 +125,7 @@ launch_service() # Startup ElasticSearch, background it, and write the pid. exec "$JAVA" $JAVA_OPTS $ES_JAVA_OPTS $es_parms -Des.path.home="$ES_HOME" -cp "$ES_CLASSPATH" $props \ org.elasticsearch.bootstrap.ElasticSearch <&- & - # no longer need to write the pid, the elasticsearch process will do it - # [ ! -z "$pidpath" ] && printf '%d' $! > "$pidpath" + [ ! -z "$pidpath" ] && printf '%d' $! > "$pidpath" fi return $?