I am wondering if anyone has scripted up a suspend and wakeup script for their mythbackend.  Basically, I want to suspend the backend until the next time the DVR needs to record something.  This can done using rtcwake and feeding it the time to wake up.  I am guessing that I only need the earliest next recording time and wake up before that.  Wondering what's the easiest way to obtain that time.  Anyways, any suggestions would be appreciated.  Otherwise, I will just need to do mysql queries for the upcoming recordings, then reformat the time to time_t and feed that into rtcwake.  Any other caveats I should be concerned about?