<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <blockquote type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      <b style="color: rgb(0, 0, 0); font-family: 'Times New Roman';
        font-style: normal; font-variant: normal; letter-spacing:
        normal; line-height: normal; orphans: 2; text-align:
        -webkit-auto; text-indent: 0px; text-transform: none;
        white-space: normal; widows: 2; word-spacing: 0px;
        -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;
        background-color: rgb(255, 255, 255); font-size: medium; "></b>
      <pre style="color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); ">
&gt;<i> [<a href="https://admin.fedoraproject.org/mailman/listinfo/users">root at naxos</a> ~]# cat /etc/rc.d/rc.local 
</i>&gt;<i> #!/bin/sh
</i>&gt;<i> service ypbind stop; sleep 2
</i>&gt;<i> service autofs stop; sleep 2
</i>&gt;<i> service ypbind start; sleep 2
</i>&gt;<i> service autofs start; sleep 2
</i>
I do something similar, but I modify it thusly:

/bin/bash -c 'sleep 5 ; service ypbind restart' &amp; &lt; /dev/null &gt; /dev/null 2&gt;&amp;1

That way rc.local doesn't hang, and ypbind gets restarted
in the background.</pre>
    </blockquote>
    <br>
    This actually seems to do it.&nbsp; Found it on the Internet somewhere:<br>
    <br>
    To make systemd wait for the the connection to be online, simply
    enable NetworkManager-wait-online.service:<br>
    systemctl enable NetworkManager-wait-online.service<br>
    <br>
    <br>
    Hugh<br>
    <br>
    <div class="moz-signature">-- <br>
      <font size="-1"><b><i>Hugh Caley</i>
          <br>
          Linux System Administrator
          <br>
          Aldon Business Area <br>
          Rocket Software</b>
        <br>
        6001 Shellmound St. Ste. 600 &middot; Emeryville, CA 94608 &middot; USA
        <br>
        Tel:+1.510.285.8542
        <br>
        <a class="moz-txt-link-abbreviated" href="mailto:Email:hcaley@aldon.com">Email:hcaley@aldon.com</a>
        <br>
        Web:aldon.com</font>
    </div>
  </body>
</html>