<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 16, 2023 at 1:33 PM Gary Buhrmaster <<a href="mailto:gary.buhrmaster@gmail.com">gary.buhrmaster@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Thu, Nov 16, 2023 at 5:44 PM Will Dormann <<a href="mailto:wdormann@gmail.com" target="_blank">wdormann@gmail.com</a>> wrote:<br>
<br>
> 2) If 1) is true, what is an appropriate way to get an Ubuntu 22.04<br>
> system to start MythTV only after the network is fully up and running?<br>
<br>
"Fully up and running" is not a well defined term<br>
when if comes to Linux and Network connectivity.<br>
<br>
Some discussion:<br>
<a href="https://systemd.io/NETWORK_ONLINE/" rel="noreferrer" target="_blank">https://systemd.io/NETWORK_ONLINE/</a><br>
<br>
Sometimes adding a Wants= and After=network-online.target<br>
(along with time-sync.target) to the MythTV backend<br>
service file will help (if you have the correct other<br>
services enabled that network-online.target itself<br>
will wait for, such as systemd-networkd-wait-online.service<br>
if you are using systemd-networkd).<br>
<br>
The "cheap" way would be something like a<br>
ExecStartPre=-/usr/bin/sleep 10<br>
<br>
If you go through the list archives you will<br>
find others who create various scripts that<br>
either try to connect to the HDHR, or ping<br>
some external device. All can work some of<br>
the time depending on what you mean by<br>
the network being up.<br>
<br>
There is also a 3rd party application called<br>
HDHRUtil-Tuner-waitOnline that can be used<br>
to wait for a HDHR to become available and<br>
used either as an ExecStartPre or an instanced<br>
service file with an After (likely one would<br>
create an instanced service file if you wanted<br>
to wait for a number of different HDHRs, but<br>
in reality, if one is available, that would usually<br>
mean all are). Be aware that if the HDHR does<br>
not actually become available that particular<br>
app will exit with an error, so you need to<br>
accommodate that with a '-' if you use<br>
ExecStartPre<br></blockquote><div><br></div><div><br></div><div>At the end of the post below is how to do it.</div><div><br></div><div><a href="https://forum.mythtv.org/viewtopic.php?f=46&t=5531">https://forum.mythtv.org/viewtopic.php?f=46&t=5531</a></div><div><br></div><div>Jim A</div><div> </div></div></div>