<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-forward-container"><br>
<br>
-------- Forwarded Message --------
<table class="moz-email-headers-table" cellspacing="0"
cellpadding="0" border="0">
<tbody>
<tr>
<th nowrap="nowrap" valign="BASELINE" align="RIGHT">Subject:
</th>
<td>Re: [mythtv-users] Mythbackend may be starting too soon?</td>
</tr>
<tr>
<th nowrap="nowrap" valign="BASELINE" align="RIGHT">Date: </th>
<td>Tue, 4 Jul 2017 09:35:15 -0400</td>
</tr>
<tr>
<th nowrap="nowrap" valign="BASELINE" align="RIGHT">From: </th>
<td>Don Brett <a class="moz-txt-link-rfc2396E" href="mailto:dlbrett@zoominternet.net"><dlbrett@zoominternet.net></a></td>
</tr>
<tr>
<th nowrap="nowrap" valign="BASELINE" align="RIGHT">To: </th>
<td>Stephen Worthington <a class="moz-txt-link-rfc2396E" href="mailto:stephen_agent@jsw.gen.nz"><stephen_agent@jsw.gen.nz></a></td>
</tr>
</tbody>
</table>
<br>
<br>
<pre>On 7/3/2017 5:41 AM, Stephen Worthington wrote:
> On Sun, 2 Jul 2017 14:40:45 -0400, you wrote:
>
>> On 07/02/2017 01:19 PM, Don Brett wrote:
>>> Is there a way make mythbackend wait until the network is ready?
>>
>> If you are using systemd, which mythbuntu should be using, look at your
>> mythtv-backend.service file. You should find it somewhere under
>> /lib/systemd. It should include these lines. I believe there was a
>> version where one of the items in these lines was misspelled.
>>
>> [Unit]
>> Description=MythTV Backend
>> Wants=mysql.service network-online.target
>> After=mysql.service network-online.target
> The network-online.target in the
> /lib/systemd/system/mythtv-backend.conf file is insufficient to allow
> external network access - it happens when the first network interface
> comes up, which is normally localhost (127.0.0.1). You need to make
> mythbackend wait until full network access is available.
>
> Do NOT edit the /lib/systemd/system/mythtv-backend.conf file. It will
> be overwritten next time the mythbackend package is updated. Instead
> you need to create an override file that modifies mythtv-backend.conf,
> using the mechanism prescribed by systemd. To do that, you need to go
> to the /etc/systemd/system directory and create a new subdirectory.
> Run these commands as root or use sudo at the front:
>
> cd /etc/systemd/system
> mkdir mythtv-backend.service.d
> chown root:root mythtv-backend.service.d
> chmod a=rx,u+w mythtv-backend.service.d
> cd mythtv-backend.service.d
>
> In the new subdirectory you need to create your override file. It can
> have any name as long as it ends with .conf. This will create an
> empty file for you to edit:
>
> touch mythtv-backend-override.conf
> chown root:root mythtv-backend-override.conf
> chmod a=rw mythtv-backend-override.conf
>
> Now edit your mythtv-backend-override.conf file and put in the
> overrides needed to make mythbackend wait until the network is up. In
> Mythbuntu 16.04 if you have not disabled Network Manager, then it can
> be used to tell when the network is up enough for external accesses to
> work. For that, put these lines in your mythtv-backend-override.conf
> file:
>
> [Unit]
> Wants=NetworkManager-wait-online.service
> After=NetworkManager-wait-online.service
>
> Then run this command (sudo or as root):
>
> systemctl enable NetworkManager-wait-online.service
>
> Then you should be able to reboot and have mythbackend wait until the
> network is up before it starts.
>
> There are several previous threads on this list about this problem.
> _______________________________________________
> mythtv-users mailing list
> <a class="moz-txt-link-abbreviated" href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a>
> <a class="moz-txt-link-freetext" href="http://lists.mythtv.org/mailman/listinfo/mythtv-users">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a>
> <a class="moz-txt-link-freetext" href="http://wiki.mythtv.org/Mailing_List_etiquette">http://wiki.mythtv.org/Mailing_List_etiquette</a>
> MythTV Forums: <a class="moz-txt-link-freetext" href="https://forum.mythtv.org">https://forum.mythtv.org</a>
>
Thanks everyone, that worked. I tested it with changes to the service
file, but then ended up using the override file. Better now, on to the
next thing,
Don
</pre>
</div>
<div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br />
<table style="border-top: 1px solid #D3D4DE;">
<tr>
<td style="width: 55px; padding-top: 13px;"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=icon" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width: 46px; height: 29px;" /></a></td>
<td style="width: 470px; padding-top: 12px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">Virus-free. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=link" target="_blank" style="color: #4453ea;">www.avast.com</a>
</td>
</tr>
</table><a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></body>
</html>