Basically, there are some system processes that I want to prevent from running. If I force quit them, they simply restart. How can I prevent them from starting/relaunching.
Before you say that I shouldn't mess with system processes: I fully understand the possible consequences.
Best Answer
It depends on how the process is being started and restarted. Most system processes are handled by launchd; if this is the case with the process you want to get rid of, you need to find the launchd item that's controlling it (it'll be one of the .plist files in /System/Library/LaunchDaemons or /Library/LaunchDaemons) and disable it with
sudo launchctl unload /path/to/launchd/item.plist
. If you want to make this permanent (i.e. stay disabled even when you reboot), add the -w flag:sudo launchctl unload -w /path/to/launchd/item.plist
. Here's an example of finding and shutting down the krb5kdc process: