Test Wether Elasticsearch is already up befaure launcing it

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