I have a new MacBook Air and it came shipped with a bogus plist (com.apple.batteryd) that had launchd going nuts.  Launchd was trying to run /usr/local/libexec/batteryd every 10 seconds, stopping the computer from sleeping and spamming the system log.
Edit: For reference, this was what was being spamed in the system log every 10 seconds:
	
	
	
		
So I went into Terminal and typed ' sudo rm "/System/Library/LaunchDaemons/com.apple.batteryd.plist" ' and everything is as it should be, but I just noticed Apple released a update that's meant to fix this. - http://support.apple.com/kb/DL1354 (Which is weird because the update is for 10.6.5 and I was having trouble with 10.6.6).
After going through the update files I noticed Apple's method of removing the file was much more complex.
Apple's Method for removing com.apple.batteryd.plist:
	
	
	
		
Could just deleting the plist like I did cause any harm?
	
		
			
		
		
	
				
			Edit: For reference, this was what was being spamed in the system log every 10 seconds:
		Code:
	
	1/13/11 11:09:31 PM com.apple.launchd[1] (com.apple.batteryd[1114]) Exited with exit code: 1
1/13/11 11:09:31 PM com.apple.launchd[1] (com.apple.batteryd) Throttling respawn: Will start in 10 seconds
1/13/11 11:09:41 PM com.apple.launchd[1] (com.apple.batteryd[1115]) posix_spawn("/usr/local/libexec/batteryd", ...): No such file or directorySo I went into Terminal and typed ' sudo rm "/System/Library/LaunchDaemons/com.apple.batteryd.plist" ' and everything is as it should be, but I just noticed Apple released a update that's meant to fix this. - http://support.apple.com/kb/DL1354 (Which is weird because the update is for 10.6.5 and I was having trouble with 10.6.6).
After going through the update files I noticed Apple's method of removing the file was much more complex.
Apple's Method for removing com.apple.batteryd.plist:
		Code:
	
	#!/bin/sh
if [ -e "$3/System/Library/LaunchDaemons/com.apple.batteryd.plist" ]; then
	sudo launchctl unload "$3/System/Library/LaunchDaemons/com.apple.batteryd.plist"
	rm -rf "$3/System/Library/LaunchDaemons/com.apple.batteryd.plist"
fiCould just deleting the plist like I did cause any harm?
			
				Last edited: 
				
		
	
										
										
								
								
											
	
		
			
		
		
	
	
	
		
			
		
		
	
										
									
								 
 
		