According the official document Elasticsearch should create a PID file when starting with the command
bin/elasticsearch -d -p pid but it does not.
ES versions: 5.x OS: macOS Sierra Java: 1.8.0_91
All the versions 1.x & 2.x create the PID file when starting with that command. It seems this is a bug on 5.x.