title: Linux autostart with script in /etc/init.d/
body: <p>I have some trouble with starting my written C++ application each time my raspberry pi with raspbian OS boots. I found the following instructions:</p>
  <p><a href="http://www.stuffaboutcode.com/2012/06/raspberry-pi-run-program-at-start-up.html" rel="nofollow noreferrer">http://www.stuffaboutcode.com/2012/06/raspberry-pi-run-program-at-start-up.html</a></p>
  <p>So I followed all of the mentioned steps:</p>
  <ol>
  <li>Created my script in /etc/init.d/myScript (by copying and modifying an existing one)</li>
  <li>Entered the path to my C++-Programm:</li>
  </ol>
  <blockquote>
  <p>case &quot;$1&quot; in<br />
  start)</p>
  <p>echo &quot;Starting my programm...&quot;</p>
  <p>/home/pi/myProgram
  ;;</p>
  </blockquote>
  <p>Note: In reality this file is well formatted and I dont get a parsing error! However if I want to start my own service with</p>
  <pre><code>sudo service myScript start
  </code></pre>
  <p>i get the following message:</p>
  <pre><code>/home/pi/myProgram    no such process
  </code></pre>
  <p>Seems to me that my C++ program can not be found? What should I do?</p>