After installing Autodesk Smoke, I have two httpd processes running all the time, and I'd like to stop them. When I use sudo killall httpd
, they stop and are restarted right away. Activity Monitor shows that the parent process is launchd, but how do I determine which agent or daemon is starting it so I can disable it?
launchctl list | grep httpd
shows these results:
302 - 0x7f94ea700dd0.anonymous.httpd
92 - org.apache.httpd
I look in /System/Library/LaunchDaemons/org.apache.httpd.plist
and it shows the following. You can see it's set to disabled
. The other launchd
item with a weird name doesn't show up in a filesystem search, so I have no idea what it is.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Disabled</key>
<true/>
<key>Label</key>
<string>org.apache.httpd</string>
<key>EnvironmentVariables</key>
<dict>
<key>XPC_SERVICES_UNAVAILABLE</key>
<string>1</string>
</dict>
<key>ProgramArguments</key>
<array>
<string>/usr/sbin/httpd</string>
<string>-D</string>
<string>FOREGROUND</string>
</array>
<key>OnDemand</key>
<false/>
</dict>
</plist>
/usr/sbin/apachectl stop
but I still don't know how to disable it after every reboot.launchctl unload
(though I don't know if this needs you to specify the path to the plist), (ii) If it's in your loginitems, use the System Preferences tool --> "Users and Groups" --> "Login Items" --> Delete offending entry if found.