Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

bed

macrumors member
Original poster
May 26, 2008
97
2
I have my MBP scheduled to wake up at 2:10am (via System Prefs UI). I then have launchd running a custom shell script to perform rysnc backups at 2:10am too.

This basic process works.. my MBP wakes up and the script starts running.

The problem is that the mac sleeps again within a minute

From system.log I can see it waking up, starting to run the script (the "Bedentoo is reachable..." line is written by my script) and then going to sleep while the rsync command is processing.

Oct 17 02:10:02 BedPro-2 kernel[0]: Previous Sleep Cause: 5
Oct 17 02:10:02 BedPro-2 kernel[0]: AFPSleepWakeHandler: waking up
Oct 17 02:10:09 BedPro-2 kernel[0]: AFPSleepWakeHandler: going to sleep
Oct 17 02:10:34 BedPro-2 SleepWatcher:wakeup[10658]: Bedentoo is reachable...
Oct 17 02:10:54 BedPro-2 kernel[0]: System Sleep


I don't have OSX set to go to the login screen after screensaver or wake, my script also does a pmset -a sleep 0 right at the start to disable sleep while rsync is going on. Have OSX 10.5.5.

Any ideas anyone?

Cheers
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.