<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 13, 2020 at 1:17 PM Jon Boehm <<a href="mailto:jon.s.boehm@gmail.com">jon.s.boehm@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"><div dir="ltr">Wait what startup race condition?  I did try to search.  Unfortunately gossamer-threads mythtv-users archive is redirecting.</div></blockquote><div><br></div><div>from the wiki at <a href="https://www.mythtv.org/wiki/Installing_MythTV_on_Ubuntu">https://www.mythtv.org/wiki/Installing_MythTV_on_Ubuntu</a></div><div>about half way down is a link:</div><div><a href="https://lists.archive.carbon60.com/mythtv/users/625986#625986">https://lists.archive.carbon60.com/mythtv/users/625986#625986</a></div><div><br></div><div>Currently there is something wrong with GT.net website that is triggering a security fault on Google Chrome.  I have to ignore everytime I go there. </div><div><br></div><div>here is what Stephen has to say at that link:</div><div><br></div><div><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">The fix is a bit complicated - you have to make a systemd unit that</span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">tests for the Ethernet interface actually being up and able to pass</span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">traffic, and then have mythbackend wait on that unit before it is</span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">started. The tools to do this are on my web server. If you are not</span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">running a server version of Ubuntu and have not disabled</span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">NetworkManager, run the following commands to set it all up. Watch</span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">out for line wrapping - my email client does that with longer lines</span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">such as the wget commands, so the wget and the URL after it should be</span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">on one line.</span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">sudo su</span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">cd /usr/local/bin</span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">wget </span><a href="http://www.jsw.gen.nz/mythtv/wait-until-pingable.py" rel="nofollow" target="_blank" style="box-sizing:border-box;color:rgb(81,98,7);text-decoration-line:none;font-family:Lato,Arial,sans-serif;outline:0px;font-size:14px;background-color:rgb(246,246,246)">http://www.jsw.gen.nz/mythtv/wait-until-pingable.py</a><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"></span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">chmod u=rwx,g=r,o=r wait-until-pingable.py</span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">systemctl enable NetworkManager-wait-online.service</span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">systemctl start NetworkManager-wait-online.service</span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">cd /etc/systemd/system</span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">mkdir mythtv-backend.service.d</span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">chmod u=rwx,g=rx,o=rx mythtv-backend.service.d</span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">cd mythtv-backend.service.d</span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">wget</span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><a href="http://www.jsw.gen.nz/mythtv/mythtv-backend-wait-until-pingable.conf" rel="nofollow" target="_blank" style="box-sizing:border-box;color:rgb(81,98,7);text-decoration-line:none;font-family:Lato,Arial,sans-serif;outline:0px;font-size:14px;background-color:rgb(246,246,246)">http://www.jsw.gen.nz/mythtv/mythtv-backend-wait-until-pingable.conf</a><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"></span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">chmod u=rw,g=r,o=r mythtv-backend-wait-until-pingable.conf</span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">cd ..</span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">wget </span><a href="http://www.jsw.gen.nz/mythtv/local-network-pingable.service" rel="nofollow" target="_blank" style="box-sizing:border-box;color:rgb(81,98,7);text-decoration-line:none;font-family:Lato,Arial,sans-serif;outline:0px;font-size:14px;background-color:rgb(246,246,246)">http://www.jsw.gen.nz/mythtv/local-network-pingable.service</a><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"></span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">chmod u=rw,g=r,o=r local-network-pingable.service</span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">Here you will need to change the text in</span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">local-network-pingable.service where it says "<a href="http://switch.jsw.gen.nz">switch.jsw.gen.nz</a>" and</span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">replace that with the IP address or DNS name of your first network</span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">tuner (if the tuner is pingable), or otherwise something on your</span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">network such as your switch or router that is normally pingable when</span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">your MythTV box is booting.</span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">Use nano or your favourite editor:</span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">nano local-network-pingable.service</span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">Then save the change and exit from nano or your editor and do these</span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">commands:</span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">systemctl enable local-network-pingable.service</span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">systemctl start local-network-pingable.service</span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">systemctl status local-network-pingable.service</span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">The systemctl status command should show that the</span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">local-network-pingable.service has started and the ping worked. If</span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">not, fix that before proceeding. Then do these commands:</span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">systemctl daemon-reload</span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">exit</span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">After that, on boot mythbackend will wait for either the ping to work,</span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">or the 30 second timeout specified in the</span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">local-network-pingable.service file. If you want to change that</span><br style="box-sizing:border-box;color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)"><span style="color:rgb(79,76,73);font-family:Lato,Arial,sans-serif;font-size:14px;background-color:rgb(246,246,246)">timeout, it is the "30" after the ping address.</span><br></div><div><br></div><div><br></div><div>Jim A</div><div><br></div></div></div>