title: JAVA - Raspberry-pi - Application as a service who start then stop immediately
body: <p>I need to start a Java app on raspberry's startup,
  but i can't figure how?!</p>
  
  <ul>
  <li><p>I've retreive the PbxMan's script to run it as a service : <a href="https://stackoverflow.com/a/21283530/5066919">https://stackoverflow.com/a/21283530/5066919</a></p></li>
  <li><p>I've made a simple script that launch the app in background</p></li>
  <li><p>I've pushed it in a crontab at reboot...</p></li>
  </ul>
  
  <p>I play a sound on the first line of the main and in the addShutdownHook().
  So i can hear that each time, the app start then stop immediately...</p>
  
  <p>Of course i don't have this problem when I launch it in CLI! :@</p>