[mythtv-users] Question about getting Myth Backend status
Brian Walter
blwalter at gmail.com
Thu May 17 17:48:15 UTC 2007
Paul Harrison wrote:
> Brian Walter wrote:
>
>> Turns out, mythshutdown does not check to see if recording? Upon
>> looking in the source, it only appears to check for spawned processes.
>> Is there a flag that I'm missing to also have it check for if the
>> recorder(s) is busy?
>>
>> Brian
>>
>>
>>
>
> What version of Myth are you using? MythShutdown from svn trunk will
> check recording status.
>
> Paul H.
>
Actually, I think I found an easier solution for a quick and dirty:
select count(*) from inuseprograms -> if nonzero something is recording
or in queue
select count(*) from jobqueue where status = 4 -> if nonzero, something
being flagged
I'm not using transcode at the moment..so..this, I think, should handle
the problem till ivtv gets fixed.
Thanks!
Brian
More information about the mythtv-users
mailing list