How to check if Appium server is running

How do we check if Appium server is running. In my current setup, I am starting Appium server when script execution starts. I am reusing existing Appium server session for follow on test scripts. Sometime, Appium server gets stopped & results in script failure.

I tried following like -
curl http://0.0.0.0:4723/wd/hub/status but throws error “curl: (7) Failed to connect to 0.0.0.0 port 4723 after 0 ms: Address not available”. Any suggestion would be great help.

Appium version - Appium v2.0.0-beta.44

Appium 2.0 has other url :slight_smile:
in your case:

 http://0.0.0.0:4723/status