[mythtv-users] Nightly shutdown + RTC Wakeup

Rodney Morris rodamorris at gmail.com
Fri Dec 4 17:45:15 UTC 2009


On Fri, Dec 4, 2009 at 10:55 AM, Mitch Gore <mitchell.gore at gmail.com> wrote:
>>
> I have thought about doing this but I run an ASA for a firewall and it does
> not have a DNS client.
>
> I dont have a NAS for diskless.  All the storage is local.  So diskless
> boots off the backend and the backend boots off diskless.
>
> I really do not want the diskless machine to wake the backend when I turn it
> on.  This would make the frontend take a lot longer to start as it would
> have to boot the server, wait...then boot itself.
>
> Any one have  script that i could modify that would use mythtv shutdown
> cmd's that would do the if statement above?
>
> Thanks,
>
> --
> Mitchell

Attached are two scripts that I use to set the RTC wakeup time for my
combined FE/BE that may be helpful in writing your script.
MythSetWakeup accepts time_t as input and sets the computer to wake up
at the earlier of the time for the next recording or the next time
mythfilldatabase needs to be run, which for my box is around 3am.  The
second script, MythShutdownWrapper, checks to see if a wakeup alarm is
set, if not, the script sets the box to wakeup at 3am by running the
MythSetWakeup command with "0" as the argument.  I needed
MythShutdownWrapper because the backend will not run the script to
wakeup for the next recording when there is no recording scheduled.

Hope these scripts are helpful,

Rod
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MythSetWakeup
Type: application/octet-stream
Size: 1769 bytes
Desc: not available
URL: <http://mythtv.org/pipermail/mythtv-users/attachments/20091204/4e3fa0e9/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MythShutdownWrapper
Type: application/octet-stream
Size: 299 bytes
Desc: not available
URL: <http://mythtv.org/pipermail/mythtv-users/attachments/20091204/4e3fa0e9/attachment-0003.obj>


More information about the mythtv-users mailing list