I've been looking around for some way to let my FreeBSD server go to sleep/suspend at a specific time and then wake up at a later time. For instance, I'd like my home server to go into suspend mode each evening around 10 PM and wake up around 8 AM since there isn't any reason for it to be on during the night.
On Linux I can do this by writing the time I want the machine to wake to the file /sys/class/rtc/rtc0/wakealarm and then calling the pm-suspend command. Dropping these actions into a cron job worked really well for me and it's just two lines of shell script.
From what I've been able to find, versions of FreeBSD up to 9.x did not offer a wake-from-suspend timer. Has this changed? Is there a program in ports that implements a scheduled wake-from-suspend?
On Linux I can do this by writing the time I want the machine to wake to the file /sys/class/rtc/rtc0/wakealarm and then calling the pm-suspend command. Dropping these actions into a cron job worked really well for me and it's just two lines of shell script.
From what I've been able to find, versions of FreeBSD up to 9.x did not offer a wake-from-suspend timer. Has this changed? Is there a program in ports that implements a scheduled wake-from-suspend?