[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mythtv-users
Subject:    Re: [mythtv-users] Fedora, ceton, systemd, and mythbackend
From:       Justin Moore <justin.nonwork () gmail ! com>
Date:       2015-01-26 13:11:12
Message-ID: CABgypctUSzqMzTbHP=5ESmioctG4akF8myrHRwgkj-4xwPjkcw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Thanks everyone for the replies. My responses inline.

> Your network management software (not systemd, unless systemd-networkd
> > IS your network management software) decides when
> > network-online.target is reached.  That might be configurable.
>
> Some distros provide a "systemd-networkd-wait-online" and/or a
> "NetworkManager-wait-online" service which, if enabled, enforce
> some dependencies.  Your distro (and systemd release) will vary.
>

I'm actually using that. It uses the nm-online command, which "waits until
NetworkManager reports an active connection" (per the man page). It seems
that as soon as *something* is up, nm-online returns success. E.g., this
bug from Fedora 17 which fell off the "it's deprecated now so it looks good
to us" wagon:

https://bugzilla.redhat.com/show_bug.cgi?id=837793

Summary: nm-online returns success when either an IPv4 or IPv6 address is
assigned, but it doesn't wait for both. I ended up adding the suggestion in
the bug (and effectively Hika's suggestion), which was to add a line saying

ExecStartPost=/bin/sleep 15

which should give my DHCP server plenty of time to assign an address to my
ethernet interface. It'll obviously slow my boot time, but for this
particular system it's not a problem since it rarely reboots.

To answer Mike's comments, this ethernet interface is integrated on the
motherboard. If the post-startup sleep solution doesn't work then I'll give
the static network configuration idea a shot since my home network
shouldn't change often, ether.

Thanks,
-jdm

[Attachment #5 (text/html)]

<div dir="ltr">Thanks everyone for the replies. My responses inline.<div \
class="gmail_extra"><br><div class="gmail_quote"><blockquote class="gmail_quote" \
style="margin:0px 0px 0px \
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span \
class="">&gt; Your network management software (not systemd, unless \
systemd-networkd<br> &gt; IS your network management software) decides when<br>
&gt; network-online.target is reached.   That might be configurable.<br>
<br>
</span>Some distros provide a &quot;systemd-networkd-wait-online&quot; and/or a<br>
&quot;NetworkManager-wait-online&quot; service which, if enabled, enforce<br>
some dependencies.   Your distro (and systemd release) will \
vary.<br></blockquote><div><br></div><div>I&#39;m actually using that. It uses the \
nm-online command, which &quot;waits until NetworkManager reports an active \
connection&quot; (per the man page). It seems that as soon as *something* is up, \
nm-online returns success. E.g., this bug from Fedora 17 which fell off the \
&quot;it&#39;s deprecated now so it looks good to us&quot; \
wagon:</div><div><br></div><div><a \
href="https://bugzilla.redhat.com/show_bug.cgi?id=837793">https://bugzilla.redhat.com/show_bug.cgi?id=837793</a><br></div><div><br></div><div>Summary: \
nm-online returns success when either an IPv4 or IPv6 address is assigned, but it \
doesn&#39;t wait for both. I ended up adding the suggestion in the bug (and \
effectively  <span style="color:rgb(0,0,0);font-size:12.8000001907349px">Hika&#39;s \
suggestion)</span>, which was to add a line \
saying</div><div><br></div><div>ExecStartPost=/bin/sleep \
15</div><div><br></div><div>which should give my DHCP server plenty of time to assign \
an address to my ethernet interface. It&#39;ll obviously slow my boot time, but for \
this particular system it&#39;s not a problem since it rarely \
reboots.</div><div><br></div><div>To answer Mike&#39;s comments, this ethernet \
interface is integrated on the motherboard. If the post-startup sleep solution \
doesn&#39;t work then I&#39;ll give the static network configuration idea a shot \
since my home network shouldn&#39;t change often, \
ether.</div><div><br></div><div>Thanks,</div><div>-jdm</div></div></div></div>



_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic