mac start and stop servicees

I found an unwanted httpd process running. And I could not stop it.

Why ?

I think it was installed as a service and therefore had an auto start routine attahced to it.

Trying to kill it killall httpd also failed.


This seems to be Apples version of init.d/service

Dumpstate what the status is

We need to dumpstate the config first, before we can then try and effect the machines state.

launchctl dumpstate > t.t

Look in the file

Open the file t.t. in VIM and find the service you are looking for. IN this case I was looking for httpd

Try and locate the line with has httpd.plist* on it....

Copy the file-spec of this plist file


This needs you to unload the config into a file

launchctl unload /System/Library/LaunchDaemons/org.apache.httpd.plist >>


I assume Loading is the reverse process.

launchctl load /System/Library/LaunchDaemons/org.apache.httpd.plist >>