[mythtv-users] Feature request: hook into backend at idle

Brian Walter blwalter at gmail.com
Tue Sep 18 19:17:24 UTC 2007


Craig Huff wrote:
> On 9/18/07, *Brian Walter* <blwalter at gmail.com 
> <mailto:blwalter at gmail.com>> wrote:
>
>     Yan Seiner wrote:
>     > It would be nice to be able to schedule certain tasks when the
>     backend
>     > is idle.  Mostly I'm thinking of reboots for maintenance and
>     such, but I
>     > can see other tasks.
>     >
>     > I've not found a way to have the backend tell me:  "I'm idle now, do
>     > what you need".
>     >
>
>
> What about using:
>
> #mythshutdown --check
> #if [ $? == 0 ]; then
>   safe_to_shutdown
> else
>   not_safe_to_shutdown
> fi
>
>
> Craig.
The only problem with mythshutdown (based on a fast scan of the code), 
is that it checks for running instance of, say, mythcommflag.

In my case, all the job stuff was off loaded to another machine, so, it 
would not find the jobs.

Brian


More information about the mythtv-users mailing list