elasticsearch/elasticsearch — pull request #8774 by t-lo (2014-12-04 08:40:48+00:00)
Title: Bootstrap.java: fix PID file creation

This change fixes various failure modes on PID file creation which have been
introduced by using nio:
- check if PID file has a directory part
- Allow PID directory creation fail w/ FileAlreadyExistsException
(thrown if directory exists and is a soft link)
- create PID file if it doesn't exist, truncate it if it does

fixes #8771