[mythtv-users] Feature request: hook into backend at idle
Brian Walter
blwalter at gmail.com
Tue Sep 18 19:44:52 UTC 2007
Craig Huff wrote:
> On 9/18/07, *Brian Walter* <blwalter at gmail.com
> <mailto:blwalter at gmail.com>> wrote:
>
> Craig Huff wrote:
> > 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.
>
>
> I admit to blissful ignorance of the source code (so far ;-).
Lucky you :)
>
> It doesn't check for slave backend activity? Or is slave backend
> activity
> completely independent of the master backend?
>
> I would have thought it checked slave backends and that they weren't
> independent/autonomous. Sounds like an opportunity! (or is that still
> called an undocumented feature?)
>
> Craig.
>
Well..to be fair, this was a bit of time ago - just checked recent svn,
and, it does appear that it
1) Checks for processes
2) Checks the db for jobs in-queue
and apparently now *does* check for active recordings
mea culpa...spoke too soon.
Brian
More information about the mythtv-users
mailing list