elasticsearch/elasticsearch-servicewrapper — pull request #15 by jprante (2012-05-24 08:59:23+00:00)
Title: Resolve symbolic links in ES_HOME

I have installed Elasticsearch in a directory with symbolic links. Unfortunately, this breaks the service wrapper when matching the wrapper process name in the process list, and it accidentally removes the pid file even at start time.

To remedy this, I added the -P flag to the pwd command that is exporting ES_HOME. This resolves symbolic links in the current directory path.