Test wether Elasticsearch is already up before launching it

I noticed that when launching elasticsearch twice, I can see two processes under linux