title: Ubuntu 16.04 rc.local - not running at boot
body: <p>i got an executable which i would like to run at startup.</p>
  
  <p>First of all i checked if my executable works in terminal:</p>
  
  <pre><code>/absolute/path/to/executable
  </code></pre>
  
  <p><strong>-> works</strong></p>
  
  <p>So i added it to my rc.local:</p>
  
  <pre><code>/absolute/path/to/executable
  </code></pre>
  
  <p><strong>-> didnt work at startup</strong></p>
  
  <p>As this executable runs infinite, i changed it to:</p>
  
  <pre><code>/absolute/path/to/executable &amp;
  </code></pre>
  
  <p><strong>-> didnt work at startup</strong></p>
  
  <p>So i thought, maybe it needs some time before i can run it, so:</p>
  
  <pre><code>/bin/sleep 30 &amp;&amp; /absolute/path/to/executable &amp;
  </code></pre>
  
  <p><strong>-> didnt work at startup</strong></p>
  
  <p>Well here i am with my rc.local not working.</p>
  
  <p>What did i do in addition to that?</p>
  
  <p>I tested if i can trigger rc.local directly by:</p>
  
  <pre><code>sudo sh /etc/rc.local
  </code></pre>
  
  <p>works, after 30 seconds my service appears with its process id !</p>
  
  <p>So what is wrong in my setup?</p>
  
  <p>Thanks and Greetings!</p>