I am using elasticsearch instance as a nosql database. This was installed with brew on mac os.
This is how I start elasticsearch.
brew services start elasticsearch
I was wondering if there is a brew command (or other) where I can know if an elasticsearch instance is on or not.
Ultimately I want to run a bash script that does the following:
If elasticsearch is off:
Turn on elastiscearch
Proceed
Else:
Proceed