Does the command systemctl and service exists on linux only and not mac?

Henry Yang picture Henry Yang · Dec 22, 2017 · Viewed 47.5k times · Source

Hi I'm trying to see the status of my apache services on my Mac. I tried the command

sudo service httpd status

but command not found

I look up in Google and discover systemctl so I try that

sudo man systemctl

and it shows no manual entry for systemctl

I noticed that I didn't see much mac os and only see linux in the websites on Google.

Does the command systemctl and service exists on linux only and not Mac?

If so, what is the mac version of these command?

Answer

l'L'l picture l'L'l · Dec 22, 2017

The equivalent to Linux systemctl on macOS would be launchctl. Apache also has it's own HTTP Server Control Interface, apachectl.

OS X Man Pages