Command to get the service status of mac os
<p>Here is the command to get the service status of linux : 
<strong>service ${services} status</strong>.
I want the code to get the service status of the mac os. Any help would be appreciable.</p>