2010-11-05

Start/Stop/Remove Daemons/Agents on Mac

If you have log messages like

Nov 4 23:29:13 idea com.apple.launchd.peruser.501[181] (de.novamedia.NML2NDeviceObserver[7664]): posix_spawn("/Applications/launch2net/launch2net.app/Contents/MacOS/NML2NDeviceObserver.app/Contents/MacOS/NML2NDeviceObserver", ...): No such file or directory
Nov 4 23:29:13 idea com.apple.launchd.peruser.501[181] (de.novamedia.NML2NDeviceObserver[7664]): Exited with exit code: 1
Nov 4 23:29:13 idea com.apple.launchd.peruser.501[181] (de.novamedia.NML2NDeviceObserver): Throttling respawn: Will start in 10 seconds
Nov 4 23:29:13 idea com.apple.launchd.peruser.501[181] (com.akamai.client.plist[7665]): Bug: launchd_core_logic.c:4139 (24108):13
Nov 4 23:29:13 idea com.apple.launchd.peruser.501[181] (com.akamai.client.plist[7665]): posix_spawn("/Applications/Akamai/loader.pl", ...): No such file or directory
Nov 4 23:29:13 idea com.apple.launchd.peruser.501[181] (com.akamai.client.plist[7665]): Exited with exit code: 1
Nov 4 23:29:13 idea com.apple.launchd.peruser.501[181] (com.akamai.client.plist): Throttling respawn: Will start in 10 seconds

in your /var/log/system.log, you should stop and remove the agents/daemons which causing these warnings, by doing this:

launchctl stop de.novamedia.NML2NDeviceObserver
launchctl remove de.novamedia.NML2NDeviceObserver
launchctl stop com.akamai.client.plist
launchctl remove com.akamai.client.plist 

launchctl is a tool that controls the system-wide and per-user launchd daemon/agent manager.