Skip to content

Commit

Permalink
add back writing pid from shell as well as writing it from Java proce…
Browse files Browse the repository at this point in the history
…ss, 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
  • Loading branch information
kimchy committed Feb 26, 2012
1 parent b6227f2 commit aa51a8a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/elasticsearch
Original file line number Diff line number Diff line change
Expand Up @@ -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 $?
Expand Down

0 comments on commit aa51a8a

Please sign in to comment.