<div dir="ltr">If your system is using systemd, don&#39;t use rc.local.  rc.local is not deterministic in systemd.  I&#39;ve had to move everything out of rc.local and learn systemd to get reliable starting.<div><br></div><div>I created something like this (<font face="monospace, monospace">run_on_boot.service</font>)</div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div><font face="monospace, monospace">[Unit]</font></div></div><div><div><font face="monospace, monospace">Description=Run at startup</font></div></div><div><div><font face="monospace, monospace">After=network.target network-online.target sshd.service</font></div></div><div><div><font face="monospace, monospace"><br></font></div></div><div><div><font face="monospace, monospace">[Service]</font></div></div><div><div><font face="monospace, monospace">Type=simple</font></div></div><div><div><font face="monospace, monospace">WorkingDirectory=/tmp</font></div></div><div><div><font face="monospace, monospace">ExecStart=/usr/local/bin/run_on_boot</font></div></div><div><div><font face="monospace, monospace"><br></font></div></div><div><div><font face="monospace, monospace">[Install]</font></div></div><div><div><font face="monospace, monospace">WantedBy=multi-user.target</font></div></div></blockquote><div><br></div><div>Copy <font face="monospace, monospace">run_on_boot.service</font> to<font face="monospace, monospace"> /etc/systemd/system</font></div><div><font face="monospace, monospace">systemctl enable run_on_boot</font></div><div class="gmail_extra"><br></div><div class="gmail_extra">The above will run the file in ExecStart after the targets, etc on next boot.  Systemd will do a topological sort on the dependencies to start things in the right order and run in parallel if it can.</div><div class="gmail_extra"><br></div><div class="gmail_extra">We used to throw things into rc.local or create a script, tack S99 on the name and put it in /etc/rc3.d. The systemd group would eliminate rc.local if they could, so it&#39;s barely supported.  It gets started at some random time, not after everything else.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 8, 2017 at 10:28 AM, Ken D&#39;Ambrosio <span dir="ltr">&lt;<a href="mailto:ken@jots.org">ken@jots.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hey, all.  I&#39;ve got some stuff in my rc.local, and it takes *forever* to<br>
execute -- three+ minutes.  (Note that the machine -- a virtual one --<br>
is up in something like 20 seconds.)  I *need* this stuff, which is<br>
lightweight in the extreme, to execute much more quickly than that.<br>
Anyone have any ideas on how to make that happen?<br>
<br>
Thanks,<br>
<br>
-Ken<br>
______________________________<wbr>_________________<br>
gnhlug-discuss mailing list<br>
<a href="mailto:gnhlug-discuss@mail.gnhlug.org">gnhlug-discuss@mail.gnhlug.org</a><br>
<a href="http://mail.gnhlug.org/">http://mail.gnhlug.org/</a><wbr>mailman/listinfo/gnhlug-<wbr>discuss/<br>
</blockquote></div><br></div></div>