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

This commit is contained in:
Shay Banon 2012-02-26 20:43:30 +02:00
parent b6227f24c1
commit aa51a8af9c

View File

@ -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 $?