How to prevent loading some LaunchDaemons?
Solution 1:
AFAIK, it's safe to remove files in /Library/LaunchAgents/
and /Library/LaunchDaemons/
normally without booting in safe mode or anything. The jobs will stay loaded, but won't be loaded again on the next login.
Solution 2:
On boot all plist files in /Library/LaunchDaemons are scanned. The plist files which contain
<key>Disabled</key>
<false/>
are loaded.
When you want them to not be loaded during next boot, change <false/>
into <true/>
.
For exemple with terminal command $ sudo nano /Library/LaunchDaemons/com.google.keystone.daemon.plist
The built in command which prevents loading a daemon on next boot and immediately unloads (stops) the requested daemon is called like this:
$ sudo launchtl unload -w /Library/LaunchDaemons/com.google.keystone.daemon.plist
The
The -w
switch makes that is being written into the plist.-w
switch makes that the daemon is not loaded on next boot.
To verify that the daemon is unoaded with succes, issue:
$ launchtl list | grep com.google.keystone
Should return something like:
- 0 com.google.keystone.user.agent
When the output line starts with a "-" (minus sign) then the unload succeeded.
12132 0 com.google.keystone.user.agent
In case there is a number (the PID) at the first position than the unload failed.
Solution 3:
Use the safe boot to disable many non-essential Apple Daemons as well as all third party daemons. Basically hold shift when you hear the boot chime and wait a few extra minutes as some safe mode checks run before the limited tasks get started by launchd.
See http://support.apple.com/kb/HT1455 for more details.
Then you can selectively delete, modify, inspect the system without these daemons. The ones you listed are all well known, common, third party apps so unless you have some odd trojan or virus that wrote these instead of installing the software that matches these, you should be safe. It's good to know you're safe so happy learning about the launchd process and how things work under the hood!