Since I upgraded (?) my iMac from Mountain Lion to Mavericks, it will no\nlonger go to sleep on its own (though I can force sleepmanually).\n\nI have been able to check that the reason is that mds_stores.maintenance\nis running a background task, and I gather that this is something to do\nwith Spotlight.\n\nBut I haven't been able to figure out more than this (even after\ngoogling). Does anyone know a way of working out precisely what is going\non? I have tried excluding various items from Spotlight, and also\nexcluding some items from my CrashPlan offsite backup. After a longish\nperiod of time, that process stopped running and normal sleep came back,\nbut after a restart the process is again running and preventing sleep.