[mythtv-users] mythfilldatabase run manually

Jim Abernathy jfabernathy at gmail.com
Thu Jan 9 14:16:32 UTC 2020


On 1/8/20 9:27 PM, Stephen Worthington wrote:
> On Wed, 8 Jan 2020 14:30:03 -0500, you wrote:
>
>> I have a mobile combo mythtv FE/BE on a RPi4 in my RV.  So it only have an internet connection when I turn my phone into a hotspot and the wireless AP/router bridge reestablishes a connection to the hotspot. As a result when mythfilldatabase runs it usually doesn’t succeed.
>>
>> So  what I do now is:
>> 1.  Turn on phone hotspot.
>> 2.  Open terminal and ‘sudo su mythtv’ then ‘mythfilldatabase’
>> 3.  Turn off phone hotspot.
>>
>> Anyone have a more automated way of doing this or is this the best I can hope for??
>>
>> Jim A
> It is possible to get a script to run when a network connection comes
> up - see /etc/network/if.up.  The system uses this, but it is possible
> to add your own scripts also.  I presume an RPi also works this way -
> it is a Debian and Debian based thing.  So you could have
> mythfilldatabase run when a network connection comes up the first time
> each day after the time it would normally be run.

After even more research I think I can't use systemd because it's a boot 
up system and can delay until a network comes up, but not helpful if a 
network connection is intermittent.

anacron would assure that mythfilldatabase only runs once a day, but not 
sure what it does if network is not available when it runs 
mythfilldatabase.  Will it retry at some point?

So I can add a script to if.up that will run with the network comes up, 
but I need to make sure that script only executes mythfilldatabase once 
per day and not every time the network comes up.

Does this make sense?

Jim A





More information about the mythtv-users mailing list