Here is the command to get the service status on Linux:
service ${services} status
I want the command to get the service status on macOS. Any help would be appreciated.
Here is the command to get the service status on Linux:
service ${services} status
I want the command to get the service status on macOS. Any help would be appreciated.
You only are able to list the services:
sudo launchctl list
Mix it with some grep and you have it.
sudo launchctl list | grep service <-- Here you put the service you're looking for
The output has the following meaning:
You can try this.
brew services info service_name
E.g., I'd like to know RabbitMQ state
brew services info rabbitmq
It will show like this: Service info