title: Bash script to start spring-boot app and finish script
body: <p>I have a bash script to deploy my spring-boot app (using bamboo).</p>
  
  <p>script gets hung on this as the spring-boot app launches and is running</p>
  
  <pre><code>java -jar myApp.jar
  </code></pre>
  
  <p>I tried running it in the background with </p>
  
  <pre><code>java -jar myApp.jar &amp;
  </code></pre>
  
  <p>as well as </p>
  
  <pre><code>java -jar myApp.jar &amp;
  disown
  </code></pre>
  
  <p>just "&amp;" seems to do nothing while the "&amp;" followed by "disown" made the script fail.</p>
  
  <p>How do I let the script finish while the spring-boot app keeps running?</p>