Tuesday, March 29, 2011

Spotlight : disabling and reenabling

Problem:

I completely screwed up spotlight by killing the mds process AND deleting some spotlight files

Solution:

From here: The following commands can be used to properly enable and disable spotlight

Disable:
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
sudo launchctl unload -w /System/Library/LaunchAgents/com.apple.Spotlight.plist


Enable:
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
sudo launchctl load -w /System/Library/LaunchAgents/com.apple.Spotlight.plist

No comments:

Post a Comment