title: Raspberry Pi - Executing external commands with an app as a service
body: <p>I use the script of PbxMan to run a Java app as a service <a href="https://stackoverflow.com/a/21283530/5066919">on this answer</a>.</p>
  
  <p>All work perfectly when I launch my app in terminal but when it's running as a service, external commands are not executed.</p>
  
  <p>Example of how I execute commands :</p>
  
  <pre><code>String [] startStreamWCTour = {
          "/usr/local/bin/mjpg_streamer",
          "-i", "/usr/local/lib/input_uvc.so -f 10r VGA",
          "-o", "/usr/local/lib/output_http.so -w /var/www/cam"};
  Process p = Runtime.getRuntime().exec( startStreamWCTour );
  ...
  </code></pre>
  
  <p>and nothing is executed...</p>
  
  <p>Maybe I have to add something to my commands...? ( I'm a little newbish on Linux ;) )</p>